From b9976f40a6a13b0dd8462183ff40a21634789cb8 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 11 May 2016 17:53:49 -0400 Subject: Allowd bug comments to have newlines --- ws2a/bugcomment.c | 5 +++++ ws2a/bugs.html | 15 +++++++++++++++ ws2a/newbug.c | 0 3 files changed, 20 insertions(+) create mode 100644 ws2a/newbug.c (limited to 'ws2a') diff --git a/ws2a/bugcomment.c b/ws2a/bugcomment.c index afd0e6c..eeba8fe 100644 --- a/ws2a/bugcomment.c +++ b/ws2a/bugcomment.c @@ -27,6 +27,11 @@ char* replaceHTML(char* str){ nstr[nstrp] = (char)hex; nstrp++; strp+=3; + }else if(str[strp] == '\n'){ + nstr[nstrp] = '\\'; + nstr[nstrp+1] = 'n'; + nstrp+=2; + strp++; }else{ nstr[nstrp] = str[strp]; nstrp++; diff --git a/ws2a/bugs.html b/ws2a/bugs.html index 5c27898..7833614 100644 --- a/ws2a/bugs.html +++ b/ws2a/bugs.html @@ -57,6 +57,21 @@ +
+ +
+ diff --git a/ws2a/newbug.c b/ws2a/newbug.c new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3-70-g09d2