changed linebreak output of function res.writeln from <br> to <br /> (for xhtml compatibility)

This commit is contained in:
Tobi Schäfer 2002-05-16 16:54:49 +00:00
parent 35aa84d81d
commit a03ba78b03

View file

@ -182,7 +182,7 @@ public final class HtmlEncoder {
case '\n':
ret.append ('\n');
if (!ignoreNewline && !swallowOneNewline)
ret.append ("<br>");
ret.append ("<br />");
if (!tagOpen)
swallowOneNewline = false;
break;
@ -267,7 +267,7 @@ public final class HtmlEncoder {
case '\n':
ret.append ('\n');
if (encodeNewline) {
ret.append ("<br>");
ret.append ("<br />");
}
break;
default: