default to preserved trailing space for print item label ( printname ) since it is commonly used for formatting purpose.

This commit is contained in:
Heng Sin Low 2013-12-05 13:53:21 +08:00
parent 1a33572fa9
commit 901d215f3a
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ public class PoExporter {
private void addTextElement(String qName, String text, AttributesImpl atts) {
try {
//default trim to false for print item label since trailing space is commonly use
//for formatting purpose
if (qName.equalsIgnoreCase("PrintName")) {
atts.addAttribute("", "", "trim", "CDATA", "false");
}
transformerHandler.startElement("", "", qName, atts);
append(text);
transformerHandler.endElement("", "", qName);