Patch from Martin Dressler to ensure that values as well as children
get written with write-all.
This commit is contained in:
@@ -442,7 +442,7 @@ writeNode (ostream &output, const SGPropertyNode * node,
|
|||||||
|
|
||||||
// If there is a literal value,
|
// If there is a literal value,
|
||||||
// write it first.
|
// write it first.
|
||||||
if (node->hasValue() && node->getAttribute(SGPropertyNode::ARCHIVE)) {
|
if (node->hasValue() && (write_all || node->getAttribute(SGPropertyNode::ARCHIVE))) {
|
||||||
doIndent(output, indent);
|
doIndent(output, indent);
|
||||||
output << '<' << name;
|
output << '<' << name;
|
||||||
writeAtts(output, node);
|
writeAtts(output, node);
|
||||||
|
|||||||
Reference in New Issue
Block a user