changed linebreak output of function res.writeln from <br> to <br /> (for xhtml compatibility)
This commit is contained in:
parent
35aa84d81d
commit
a03ba78b03
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue