Patch from Martin Dressler to ensure that values as well as children

get written with write-all.
This commit is contained in:
david 2002-03-09 11:14:29 +00:00
parent 10715bbea7
commit a2d95ac742

View File

@ -442,7 +442,7 @@ writeNode (ostream &output, const SGPropertyNode * node,
// If there is a literal value,
// write it first.
if (node->hasValue() && node->getAttribute(SGPropertyNode::ARCHIVE)) {
if (node->hasValue() && (write_all || node->getAttribute(SGPropertyNode::ARCHIVE))) {
doIndent(output, indent);
output << '<' << name;
writeAtts(output, node);