IDEMPIERE-1440:line description alignment wrong on document printing

This commit is contained in:
hieplq 2015-07-20 02:03:37 +07:00
parent f14c24a608
commit d67471319f
1 changed files with 1 additions and 1 deletions

View File

@ -1503,7 +1503,7 @@ public class TableElement extends PrintElement
if (str.length() > 0) if (str.length() > 0)
{ {
usedHeight = 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++) for (int lineNo = 0; lineNo < lines.length; lineNo++)
{ {
aString = new AttributedString(lines[lineNo]); aString = new AttributedString(lines[lineNo]);