PDA

View Full Version : $\n Code


petersa
21st May 2001, 07:59
There's talk in the documentation about using $\n to place a newline.

I have tried $n, \n and $\n for ComponentText but they simply show up. Any help would be appreciated.

yazno
21st May 2001, 08:46
hi,

$\n is meant for something like:

MessageBox MB_OK "top line$\nbottom line"

cu yzo

petersa
21st May 2001, 09:00
That's a pity...

...might there be a feature in the future to add newlines to static text on the installer form?

yazno
21st May 2001, 09:14
hi,

what do you mean?

cu yzo

petersa
21st May 2001, 09:26
I was thinking something like this:

ComponentText "You are about to install Program.$\n$\nPlease select your components:"

where $\n would be converted to newline.

yazno
21st May 2001, 09:37
hi,

i just tested it with

ComponentText test #13 test

it seems as there is only one line allowed

cu yzo

petersa
21st May 2001, 09:39
Damn...

...could this please maybe become a feature?

yazno
21st May 2001, 09:44
hi,

LOL .. dunno, i don't have anything to do with the nsis developement.

i am just a user :)

cu yzo

petersa
21st May 2001, 09:49
Oops, forgot to turn my head to Justin... :)

Justin?

saivert
30th May 2001, 09:07
I think Nullsoft must make it so that the $\r and $\n can be used everywhere to define \r and \n (newline/linefeed and carriage return). Yeah, thats right! CR LF forever...

petersa
30th May 2001, 10:13
Well, I just tried $\r$\n, \r\n, and $r$n. None of them worked for the wizard dialog...so I guess it's just not meant to be...

Thanks anyway, saivert!

I really hope this is added sometime.