Line breaks in MAPINFO's exittext/entertext

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Player701
 
 
Posts: 1710
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Line breaks in MAPINFO's exittext/entertext

Post 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?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Line breaks in MAPINFO's exittext/entertext

Post by Graf Zahl »

Like this:

Code: Select all

exittext = "Some text",
           "More text"
User avatar
Player701
 
 
Posts: 1710
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Line breaks in MAPINFO's exittext/entertext

Post 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.
Locked

Return to “Editing (Archive)”