pretty print

This commit is contained in:
Marc Wäckerlin
2009-04-09 14:11:39 +00:00
parent 46065d3193
commit 2261c5b77d

View File

@@ -366,7 +366,7 @@ namespace xml {
}
Node& Node::limits(size_type min, size_type max) throw() {
_min = min;
_min = max;
_max = max;
return *this;
}
Node::List Node::list(const std::string& name) const throw() {
@@ -555,7 +555,7 @@ namespace xml {
os<<std::endl;
for (Node::size_type i(0); i<node.children(); ++i)
print(os, node[i], level+1);
os<<std::string(level, '\t')<<"</"<<node.name()<<'>';
os<<std::string(level, '\t')<<"</"<<node.name()<<'>'<<std::endl;
} else {
os<<std::string(level, '\t')<<'<'<<node.name();
for (Attributes::const_iterator it(node.attributes().begin());