From d67471319f63496d2dec9241fe35e00eceaf5a38 Mon Sep 17 00:00:00 2001 From: hieplq Date: Mon, 20 Jul 2015 02:03:37 +0700 Subject: [PATCH] IDEMPIERE-1440:line description alignment wrong on document printing --- .../src/org/compiere/print/layout/TableElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/print/layout/TableElement.java b/org.adempiere.base/src/org/compiere/print/layout/TableElement.java index 92ac9f3c2b..3eb11ad110 100644 --- a/org.adempiere.base/src/org/compiere/print/layout/TableElement.java +++ b/org.adempiere.base/src/org/compiere/print/layout/TableElement.java @@ -1503,7 +1503,7 @@ public class TableElement extends PrintElement if (str.length() > 0) { usedHeight = 0; - String[] lines = Pattern.compile("$", Pattern.MULTILINE).split(str); + String[] lines = Pattern.compile("\n", Pattern.MULTILINE).split(str); for (int lineNo = 0; lineNo < lines.length; lineNo++) { aString = new AttributedString(lines[lineNo]);