Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit c67c16bb authored by Rob Swindell's avatar Rob Swindell 💬

Add support for conditional new-line Ctrl-A code (/) in html_encode()

parent 0d802d84
Pipeline #2048 passed with stage
in 7 minutes and 53 seconds
......@@ -2201,13 +2201,19 @@ js_html_encode(JSContext *cx, uintN argc, jsval *arglist)
: tm.tm_hour>12 ? tm.tm_hour-12
: tm.tm_hour, tm.tm_min, tm.tm_hour>11 ? "pm":"am");
break;
case 'L':
currrow=0;
hpos=0;
outbuf[j++]='\r';
outbuf[j++]='\n';
break;
case '/': // conditional new-line
if(hpos > 0) {
hpos=0;
outbuf[j++]='\r';
outbuf[j++]='\n';
}
break;
case ']':
currrow++;
if(hpos!=0 && tmpbuf[i+2]!=CR && !(tmpbuf[i+2]==CTRL_A && tmpbuf[i+3]=='['))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment