summaryrefslogtreecommitdiff
path: root/ws2a/bugcomment.c
diff options
context:
space:
mode:
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;