mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
Fix for [Bug 183404] [Project Model] .cproject is growing blank lines
This commit is contained in:
parent
2b2e606049
commit
513a224530
1 changed files with 7 additions and 0 deletions
|
@ -204,6 +204,13 @@ public class XmlStorageElement implements ICStorageElement {
|
|||
if(isPropertyAlowed(attr.getNodeName()))
|
||||
map.removeNamedItem(attr.getNodeName());
|
||||
}
|
||||
|
||||
NodeList list = fElement.getChildNodes();
|
||||
for(int i = 0; i < list.getLength(); i++){
|
||||
Node node = list.item(i);
|
||||
if(node.getNodeType() == Node.TEXT_NODE)
|
||||
fElement.removeChild(node);
|
||||
}
|
||||
}
|
||||
|
||||
public ICStorageElement createChild(String name,
|
||||
|
|
Loading…
Add table
Reference in a new issue