summaryrefslogtreecommitdiff
path: root/ws2a/bugcomment.c
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-11 18:13:26 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-11 18:13:26 -0400
commit9ca7c88d7c56b4bdbf2380ffeb663d700404ea35 (patch)
treec7d10efab48e325c5d007a1017cfaad24de721e6 /ws2a/bugcomment.c
parentb9976f40a6a13b0dd8462183ff40a21634789cb8 (diff)
downloadwebpage-9ca7c88d7c56b4bdbf2380ffeb663d700404ea35.tar.gz
webpage-9ca7c88d7c56b4bdbf2380ffeb663d700404ea35.tar.bz2
webpage-9ca7c88d7c56b4bdbf2380ffeb663d700404ea35.zip
Modifications to butcomment so it can accept newlines
Diffstat (limited to 'ws2a/bugcomment.c')
-rw-r--r--ws2a/bugcomment.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ws2a/bugcomment.c b/ws2a/bugcomment.c
index eeba8fe..6464314 100644
--- a/ws2a/bugcomment.c
+++ b/ws2a/bugcomment.c
@@ -24,6 +24,14 @@ char* replaceHTML(char* str){
int hex;
sscanf(str+strp,"%%%x",&hex);
//printf("Was:%c\n",(char)hex);
+ if(hex == 0x0D) continue;
+ if(hex == 0x0A){
+ nstr[nstrp] = '\\';
+ nstr[nstrp+1] = 'n';
+ nstrp+=2;
+ strp++;
+ continue;
+ }
nstr[nstrp] = (char)hex;
nstrp++;
strp+=3;