On 2018 Jan 19 23:47:34, rswindell wrote to CVS commit:
exec avatars.js 1.27 1.28 sbbslist.js 1.31 1.32
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv8454
Modified Files:
avatars.js sbbslist.js
Log Message:
When exporting JSON to a message base, expand sole LF to CRLF (JSON.stringify creates \n-terminated lines).
on a wide (>80 column) terminal, this looks so much better from a human view point... at least now one can copy/pasta the mime out and have it decoded without having to resort to editing to put the lines in proper order ;)
it reminds me of TimEd's formatting capability... normal paragraphs are written
with no line breaks but if one has a chart, log snippet or something else they need to stay formatted with hard CRLF at the end of the line, we wrap that section with tilde characters... in TimEd it is known as forcing 'hard returns'
for a sequence of lines... at the beginning of an empty line, you put two tildes, then put your chart or whatever needs to stay formatted and then on another empty line you put two more tildes...
eg:
~~
+ 19 Jan 20:04:31 [14038] sent: *path*\1\123\120\to\87D9D49D.PKT
+ 19 Jan 20:18:45 [14146] sent: *path*\1\123\120\to\87D9F7B0.PKT
+ 19 Jan 20:34:10 [14288] sent: *path*\1\123\120\to\87DA1B3D.PKT
+ 19 Jan 20:49:02 [14367] sent: *path*\1\123\120\to\87DA3E45.PKT
~~
so in the message, all hard returns are stripped except for those at the end of
the above four lines... if there are no CRs on those lines, they are added... one can also do single lines by placing the tilde at the end of the line...
eg: this line will certainly have a 'hard return' added to it.~
so you could wrap a section of lines in double tildes, or place the tilde at the end of each line... section 8.7 of the timed.doc file has more information and details of the whys and wherefores if you are interested...
i'm pretty sure i mentioned this in the past and am mentioning it again because
it is a feature that would be a nice addition to SBBS' messaging capabilities... especially those written by humnans importing their log snippets and similar things where automatic word wrapping really breaks their formatting ;)
)\/(ark
Always Mount a Scratch Monkey
Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
... I tried growing mint, but the LifeSavers never sprouted. -DS
---
* Origin: (1:3634/12.73)