• MsgBase.save_msg() and line endings

    From Nightfox@VERT/DIGDIST to Digital Man on Sun Jan 20 21:35:50 2013
    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?ããNightfoxããã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Mon Jan 21 23:53:23 2013
    Re: MsgBase.save_msg() and line endingsã By: Nightfox to Digital Man on Sun Jan 20 2013 09:35 pmãã > 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?ãã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.ãã > 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?ããThe new-line encoding in SMB is not specific to the "current platform" or ãclient.ãã digital manããSynchronet "Real Fact" #60:ãHow to get Synchronet technical support: http://wiki.synchro.net/howto:supportãNorco, CA WX: 65.6øF, 8.0% humidity, 11 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Tue Jan 22 07:46:48 2013
    Re: MsgBase.save_msg() and line endingsã By: Digital Man to Nightfox on Mon Jan 21 2013 23:53:23ãã DM> SMB has required lines be termined with "\r\n" since it's inception. Oneã DM> recent change to this is that so-called "soft carriage-returns" are nowã DM> encoded asã DM> " \n". This is because Synchronet (as of v3.15) now rd-word-wraps messagesã DM> when displaying via the Terminal Server (e.g. ANSI over Telnet) and weã DM> needed a distinction between auto-wrapped lines (via an editor'sã DM> word-wrapping) and a so-called "hard CR" (when the author hit ENTER). Seeã DM> docs/WRAP.txt or ask Deuce for more details.ããThanks.ããNightfoxããã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã