This content has been marked as final. Show 4 replies
Sorry -- I pressed "enter" instead of tab in my initial post. Here's my question:
I'm processing multi-line script labels using carriage returns and/or line feeds as delimiters. However, I'm having trouble writing a script that works on both Mac and Win machines.
Looking at exported INX files, it looks like the "enter" key is represented by different characters on different platforms:
Does this match others' experience and/or knowledge?
Can one test for platform in a JS, and behave accordingly?
So far, carriage returns isn't defined by "\r" ?
> So far, carriage returns isn't defined by "\r" ?
Yes, but when doing text file IO, that can be remapped to '\r\n' on Windows,
'\n' on Unix, and left as '\r' on the Mac.
Try this :
//Unicode character for carriage return