Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Leading whitespaces in template
Leading whitespaces in template [message #1690415] Fri, 27 March 2015 09:05 Go to next message
Ferdinand von den Eichen is currently offline Ferdinand von den EichenFriend
Messages: 9
Registered: March 2015
Junior Member
I'm having trouble with including whitespaces at line beginnings of templates, i.e. this (with 2 whitespaces)

EDIT: Even here the whitespaces get removed, so I replaced them with underscores. I need whitespaces though!

'''
__«applicationName».server.services.common.sql
'''

ends up returning a string that is this
"app.server.services.common.sql"

Not sure if the problem lies with eclipse, java or xtend. Any suggestions?

[Updated on: Fri, 27 March 2015 09:14]

Report message to a moderator

Re: Leading whitespaces in template [message #1690426 is a reply to message #1690415] Fri, 27 March 2015 09:36 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

this is xtend rich strings default behaviour. maybe you actually want to

'''  «x»'''


(no linebreaks)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Leading whitespaces in template [message #1690445 is a reply to message #1690426] Fri, 27 March 2015 11:05 Go to previous message
Ferdinand von den Eichen is currently offline Ferdinand von den EichenFriend
Messages: 9
Registered: March 2015
Junior Member
Thanks, solved! Smile
Previous Topic:Logical expressions within XExpressionOrVarDeclaration
Next Topic:Question about content assist
Goto Forum:
  


Current Time: Tue Apr 23 17:40:30 GMT 2024

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

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

Back to the top