Hi DM -
When using MsgBase's save_msg() function, does it matter what newline character(s) are used at the end of the lines? If all the lines end with \r\n, will the message be posted with the proper newlines regardless of
what platform the script/Synchronet is running in?
Also, does Synchronet provide a JavaScript variable/property anywhere that contains the proper newline character(s) for the current platform? Or does it even matter?
SMB has required lines be termined with "\r\n" since it's inception. One recent change to this is that so-called "soft carriage-returns" are now encoded as
" \n". This is because Synchronet (as of v3.15) now rd-word-wraps messages when displaying via the Terminal Server (e.g. ANSI over Telnet) and we needed a distinction between auto-wrapped lines (via an editor's word-wrapping) and a so-called "hard CR" (when the author hit ENTER). See docs/WRAP.txt or ask Deuce for more details.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,044 |
Nodes: | 16 (1 / 15) |
Uptime: | 46:02:16 |
Calls: | 500,943 |
Calls today: | 6 |
Files: | 109,374 |
D/L today: |
5,835 files (1,061M bytes) |
Messages: | 304,051 |