View Single Post
  #9  
Old 10-28-2005, 12:03 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by ForgottenLegacy
3) Scripted line breaks are string line breaks, but the only exception is that the line break is contained within the string. (Someone correct me on this, mmkay?)
Line breaks are line breaks. However, the scripting engine will treat them differently depending on where they are.

\n is an escaped character which is eventually replaced by a line break.

Thus, using \n is unnecessary for many new lines, since
HTML Code:
say2("HELLO\n" @
"LOL\n" @
"foo");
eventually becomes:
HTML Code:
say2("HELLO
" @
"LOL
" @
"foo");
especially when this is shorter:
HTML Code:
say2("HELLO
LOL
foo");
Concerning \\n, \\n is probably escaping the first "\", so that it does not escape "n". When it is displayed in RC, it is possibly being escaped again when it shouldn't be.
__________________
Skyld
Reply With Quote