diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-11 17:53:49 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-11 17:53:49 -0400 |
| commit | b9976f40a6a13b0dd8462183ff40a21634789cb8 (patch) | |
| tree | 824ebb7bbff3a788bd9f837d8b947492d1149f60 /ws2a/bugcomment.c | |
| parent | 64ebaae3eac64f1a607eb02292f45234c42dc05d (diff) | |
| download | webpage-b9976f40a6a13b0dd8462183ff40a21634789cb8.tar.gz webpage-b9976f40a6a13b0dd8462183ff40a21634789cb8.tar.bz2 webpage-b9976f40a6a13b0dd8462183ff40a21634789cb8.zip | |
Allowd bug comments to have newlines
Diffstat (limited to 'ws2a/bugcomment.c')
| -rw-r--r-- | ws2a/bugcomment.c | 5 |
1 files changed, 5 insertions, 0 deletions
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++; |
