Skip to content
Snippets Groups Projects
Commit eb209e84 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Do not remove trailing white-space from lines in .sig files

This allows a .sig file to contain "\n-- \n", the "standard" USENET signature delimiter, as requested by Tracker1.
parent dc294f59
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -716,7 +716,7 @@ bool sbbs_t::writemsg(const char *fname, const char *top, char *subj, long mode,
while(!feof(sig)) {
if(!fgets(str,sizeof(str),sig))
break;
truncsp(str);
truncnl(str);
if(utf8) {
char buf[sizeof(str)*4];
cp437_to_utf8_str(str, buf, sizeof(buf) - 1, /* minval: */'\x02');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment