Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   defining a user-friendly MUI_WELCOMEPAGE_TEXT (http://forums.winamp.com/showthread.php?t=226446)

janeInscoltand 19th September 2005 23:45

defining a user-friendly MUI_WELCOMEPAGE_TEXT
 
Why does putting it all on one line compile:
!define MUI_WELCOMEPAGE_TEXT "line 1 \n\nline3\nline 5\nline 6\n\nline 8\n\nline 9\n"

but laying it out "neatly" doesn't:
!define MUI_WELCOMEPAGE_TEXT "line 1 \n\n" \
"line3\n" \
"line 5\n" \
"line 6\n\n" \
"line 8\n\n" \
"line 9\n"
I know I'm doing something stupid - but can't find anything in documentation to help me fix it.

glory_man 20th September 2005 09:37

You need to use code like follows:
code:
!define MUI_WELCOMEPAGE_TEXT "line 1 \n\n \
line3\n \
line 5\n \
line 6\n\n \
line 8\n\n \
line 9\n"


JaneInScoltand 20th September 2005 10:01

Thanks, but
 
I did try that but lost the leading spaces on the lines I want to be indented. But putting the \n at the start rather than the end of the line works:

code:-------

!define MUI_WELCOMEPAGE_TEXT "line 1 \n \
\n line3 text with leading spaces \
\n line 5 text with leading spaces \
etc.

Thanks


All times are GMT. The time now is 04:39.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.