Page 1 of 1

Line breaks in MAPINFO's exittext/entertext

Posted: Sat Sep 18, 2010 5:28 am
by Player701
How to properly add line breaks in MAPINFO cluster definition's exittext/entertext ? If I do it like this:

Code: Select all

exittext = "Some text\nMore text"
then it doesn't work because \n escape codes aren't parsed.
If I do it like this:

Code: Select all

exittext = "Some text
            More text"
ZDoom blames me for an unterminated string constant.
Finally, if I do it like this:

Code: Select all

exittext = "Some text"
           "More text"
it also doesn't work as the lines below the exittext are interpreted as unknown properties.

So, how should I do it?

Re: Line breaks in MAPINFO's exittext/entertext

Posted: Sat Sep 18, 2010 5:44 am
by Graf Zahl
Like this:

Code: Select all

exittext = "Some text",
           "More text"

Re: Line breaks in MAPINFO's exittext/entertext

Posted: Sat Sep 18, 2010 5:45 am
by Player701
Graf Zahl wrote:Like this:

Code: Select all

exittext = "Some text",
           "More text"
Thanks. And how to add double line breaks? E.g. some text, than an empty line, and than more text. Tried an empty string, and a string with a single space, like this:

Code: Select all

"Some text",
" ",
"More text"
No dice.

EDIT: Nevermind, I was editing the wrong text block.