Merge pull request #5492 from liquid600pgm/xml-trim-javadoc

added javadoc comment for XML#trim()
This commit is contained in:
Ben Fry
2018-04-28 13:16:50 -04:00
committed by GitHub
+8 -1
View File
@@ -594,7 +594,14 @@ public class XML implements Serializable {
children = null; // TODO not efficient
}
/**
* Removes whitespace nodes.
* Those whitespace nodes are required to reconstruct the original XML's spacing and indentation.
* If you call this and use saveXML() your original spacing will be gone.
*
* @nowebref
* @brief Removes whitespace nodes
*/
public void trim() {
try {
XPathFactory xpathFactory = XPathFactory.newInstance();