mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
aee6be71f3
commit
c194eb915c
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue