IDEMPIERE-1869 List Reference value are trimmed / drop trimming of strings on packin
This commit is contained in:
parent
e7730780ba
commit
e75af0f62e
|
@ -297,18 +297,6 @@ public class PackInHandler extends DefaultHandler {
|
|||
setupHandlers();
|
||||
} else {
|
||||
Element e = stack.pop();
|
||||
if (e.contents != null && e.contents.length() > 0)
|
||||
{
|
||||
if (e.contents.toString().length() != e.contents.toString().trim().length())
|
||||
{
|
||||
String trim = e.attributes.getValue("trim");
|
||||
if (!(trim != null && trim.equals("false")))
|
||||
{
|
||||
String s = e.contents.toString().trim();
|
||||
e.contents = new StringBuffer(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (stack.isEmpty())
|
||||
{
|
||||
try {
|
||||
|
|
|
@ -31,11 +31,6 @@ 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") || qName.equalsIgnoreCase("UserLevel")) {
|
||||
atts.addAttribute("", "", "trim", "CDATA", "false");
|
||||
}
|
||||
transformerHandler.startElement("", "", qName, atts);
|
||||
append(text);
|
||||
transformerHandler.endElement("", "", qName);
|
||||
|
|
Loading…
Reference in New Issue