fixed bug where encodeForm would duplicate \n newlines (wahhhh!)

This commit is contained in:
hns 2001-07-11 15:22:34 +00:00
parent f5402ee06f
commit d795dfbb48

View file

@ -269,9 +269,9 @@ public final class HtmlEncoder {
ret.append ('\n'); ret.append ('\n');
if (encodeNewline) { if (encodeNewline) {
ret.append ("<br>"); ret.append ("<br>");
break;
} }
default: break;
default:
if (c < 160) if (c < 160)
ret.append ((char) c); ret.append ((char) c);
else if (c >= 160 && c <= 255) else if (c >= 160 && c <= 255)