X-Git-Url: http://git.rot13.org/?p=zxing.git;a=blobdiff_plain;f=zxingorg%2Fweb%2Fdecoderesult.jspx;h=b7002f3e5fcfee0f9779f7c750cf3a24987cd929;hp=658cca1e1d53d4c772f5af349145581f065cafd8;hb=5cc5a1cd29b034939d7545140454c869844ddfea;hpb=0d27796586a2bf0edcb72f3207db46561ab3a4c5 diff --git a/zxingorg/web/decoderesult.jspx b/zxingorg/web/decoderesult.jspx index 658cca1e..b7002f3e 100644 --- a/zxingorg/web/decoderesult.jspx +++ b/zxingorg/web/decoderesult.jspx @@ -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/>"); }