Preserve line breaks into XHTML

git-svn-id: https://zxing.googlecode.com/svn/trunk@1534 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2010-08-16 11:09:49 +00:00
parent aee6be71f3
commit c194eb915c

View file

@ -67,6 +67,7 @@
text = "(Not applicable)";
} else {
text = StringEscapeUtils.escapeXml(text);
text = text.replaceAll("\r?\n", "<br/>");
}
byte[] rawBytes = result.getRawBytes();
@ -82,6 +83,7 @@
displayResult = "(Not applicable)";
} else {
displayResult = StringEscapeUtils.escapeXml(displayResult);
displayResult = displayResult.replaceAll("\r?\n", "<br/>");
}
</jsp:scriptlet>
<table>