diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/pugixml.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 90befd8..961e5f3 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -3643,11 +3643,12 @@ PUGI__NS_BEGIN  				}  				node = node->parent; -				depth--;  				// write closing node  				if (PUGI__NODETYPE(node) == node_element)  				{ +					depth--; +  					if (indent_length)  						text_output_indent(writer, indent, indent_length, depth);  | 
