Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] Newline style of output files
[Xpand] Newline style of output files [message #638980] Sun, 14 November 2010 10:22 Go to next message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
Hello,

can I somehow tell Xpand to generate the output files with Windows-style
newlines only? I have to generate some configuration files that are read
by another product, and that product expects Windows linebreaks. Even if I
use Xpand on a Windows box, it always seems to generate Unix-style linebreaks.

Thanks
Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
Failure is not an option. It comes bundled with your Microsoft product.
Re: [Xpand] Newline style of output files [message #638984 is a reply to message #638980] Sun, 14 November 2010 12:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14655
Registered: July 2009
Senior Member
Hello Volker,

Xpand takes the newlines a you put them into the Xpand file - so adding windows style CRLF there should solve the problem. Another possiblity is to write a custom postprocessor / beautifier that does that.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: [Xpand] Newline style of output files [message #639009 is a reply to message #638984] Sun, 14 November 2010 17:23 Go to previous message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
Hello, Christian,

Christian Dietrich <christian.dietrich@itemis.de> writes:
> Xpand takes the newlines a you put them into the Xpand file - so adding
> windows style CRLF there should solve the problem.

Neatly solved my problem. Thanks!

Volker


--
* Volker Wegert * http://www.volker-wegert.de/contact *
"In the spirit of taking things too far, here is a fully functional
5-dimensional analog of Rubik's cube."
(http://www.gravitation3d.com/magiccube5d/)
Previous Topic:[Acceleo] Constraint support ?
Next Topic:[EMF: Answered] How to create a container of references
Goto Forum:
  


Current Time: Fri Mar 01 15:54:50 GMT 2024

Powered by FUDForum. Page generated in 0.22414 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top