default to preserved trailing space for print item label ( printname ) since it is commonly used for formatting purpose.
This commit is contained in:
parent
1a33572fa9
commit
901d215f3a
|
@ -29,6 +29,11 @@ public class PoExporter {
|
||||||
|
|
||||||
private void addTextElement(String qName, String text, AttributesImpl atts) {
|
private void addTextElement(String qName, String text, AttributesImpl atts) {
|
||||||
try {
|
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);
|
transformerHandler.startElement("", "", qName, atts);
|
||||||
append(text);
|
append(text);
|
||||||
transformerHandler.endElement("", "", qName);
|
transformerHandler.endElement("", "", qName);
|
||||||
|
|
Loading…
Reference in New Issue