Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting withe the ThingML Standalone pretty-printer #272

Open
ffleurey opened this issue Dec 11, 2018 · 2 comments
Open

Formatting withe the ThingML Standalone pretty-printer #272

ffleurey opened this issue Dec 11, 2018 · 2 comments

Comments

@ffleurey
Copy link
Collaborator

org.thingml.xtext.helpers.ThingMLSerializer contains a pretty printer.

It works but the formatting is not pretty. It is using the default OneWhitespaceFormatter.
I do not understand why it does not use our ThingMLFormatter.

Ctrl+Shift+F in eclipse and the saving of EMF Resources which works properly but I cannot find how to setup the ThingMLSerializer to use the ThingMLFormatter in the same way.

I give up for now!

ffleurey added a commit that referenced this issue Dec 11, 2018
@ffleurey
Copy link
Collaborator Author

It could be that we should see if upgrading to the latest version of XText helps. I suspect some conflicts because the way XText handles formatting has changed at some point. We may still have some legacy code... not sure

@TheDemonHuB
Copy link

is there any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants