boostorg / property_tree

Boost.org property_tree module
http://boost.org/libs/property_tree
55 stars 92 forks source link

Enhanced xml pretty printing with nodes having attributes only. #25

Open martin-yum opened 7 years ago

martin-yum commented 7 years ago

Each attribute is printed in a separate, indented line now. This makes the xml better readable, especially if there are many attributes in the node.

Signed-off-by: e-driver e-driver@t-online.de

martin-yum commented 7 years ago

This is a simple improvement for xml export. If you have nodes with many (and probably long) attributes, the xml file becomes very ugly with all attributes in a long line. Now all attributes are tiny in new lines like subnodes. In case of mixed nodes (attributes and subnodes) the behaviour is unchanged (all attributes in one line).