|
|
|
|
|
|
Re: [Acceleo] handline of newlines in mtl templates [message #1765957 is a reply to message #1763655] |
Wed, 14 June 2017 15:16 |
|
Hi Jad,
The line ending on your eclipse workspace is defined as a preference:
Window > Preferences, then in there you want to go to General > Workspace and explicitely set your line delimiter to Other: Unix instead of Default (Windows)
If you only want to change your project, right-click the project and go into its properties. The first screen (select "Resource" in the properties tree) allows you to explicitely set the line delimiter of your project. Other: Unix is again the one you want.
That will only apply to new files though, so you will have to manually change the ones you've already created : select the mtl files you want to change to the "\n" line delimiter, then use the File > Convert line delimiters to > Unix menu of eclipse.
[edit] Note that Acceleo will use the line delimiters that are used in the template when generating, not the line delimiter from the system. That choice was initially made to ensure people generating code on multiple machines will always have the same result since the template is what defines said result.
Laurent Goubet
Obeo
[Updated on: Wed, 14 June 2017 15:21] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.07916 seconds