mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #5492 from liquid600pgm/xml-trim-javadoc
added javadoc comment for XML#trim()
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user