-
Notifications
You must be signed in to change notification settings - Fork 120
Closed
Description
Element root = new Element("root");
root.addContent(new Text(" "));
root.addContent(new Text("x"));
root.addContent(new Text(" "));
Format mf = Format.getRawFormat();
mf.setTextMode(TextMode.TRIM_FULL_WHITE);
XMLOutputter xout = new XMLOutputter(mf);
String output = xout.outputString(root);
assertEquals("<root> x </root>", output);
but The output is not actually:
"<root> x </root>"
it is:
"<root>x</root>"
which is wrong...
For reference, it should be identical to the output of (this works...):
Element root = new Element("root");
root.addContent(new Text(" x "));
Format mf = Format.getRawFormat();
mf.setTextMode(TextMode.TRIM_FULL_WHITE);
XMLOutputter xout = new XMLOutputter(mf);
String output = xout.outputString(root);
assertEquals("<root> x </root>", output);
Metadata
Metadata
Assignees
Labels
No labels