Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] Change in behavior of "-" sign to skip whitespaces?
[Xpand] Change in behavior of "-" sign to skip whitespaces? [message #527210] Wed, 14 April 2010 09:49 Go to next message
Eclipse UserFriend
Hello,

is there any change in the behaviour of handling the "-" sign in Xpand v1.0.0?

Example:
«FILE "file.txt" SRC_GEN-»
     This text starts without leading whitespaces
«ENDFILE»


Expected result:
This text starts without leading whitespaces


Received result:
     This text starts without leading whitespaces



The behaviour I'm familiar with is described here:
http://www.openarchitectureware.org/pub/documentation/4.3.1/ html/contents/core_reference.html#xpand_reference_controllin g_generation_of_white_space


Kind Regards
Ludwig
Re: [Xpand] Change in behavior of "-" sign to skip whitespaces? [message #527403 is a reply to message #527210] Thu, 15 April 2010 03:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ludwig!

The "-" operator only suppresses the following newline, not whitespace followed after that. So if you indent your text in the next line it will be printed as-is. This behavior was this way always and did not change. Did you have any postprocessors before?

Kind regards,
~Karsten
Re: [Xpand] Change in behavior of "-" sign to skip whitespaces? [message #527410 is a reply to message #527210] Thu, 15 April 2010 04:11 Go to previous message
Eclipse UserFriend
Hi Karsten,

thanks for the quick reply.
Yes, indeed I had. My fault, sorry.

Thanks again.

Kind regards
Ludwig
Previous Topic:Xpand IMPORT problem
Next Topic:[Xtend] problem in m2m transformation
Goto Forum:
  


Current Time: Sun Jul 13 14:27:45 EDT 2025

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

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

Back to the top