diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-12 16:27:05 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-12 16:27:05 +0000 |
commit | e1013bfcd83174cfe2076c76cb03e960f7998106 (patch) | |
tree | 66d5c4b5f39b1cac4e91dfcdb3be4aefcbc0c986 /src/pugixml.cpp | |
parent | 80d778d0532d83d566d310bc790d9a50646016bb (diff) |
PCDATA is now output with trailing newline if format_raw is not set and PCDATA is not the only child
git-svn-id: http://pugixml.googlecode.com/svn/trunk@153 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r-- | src/pugixml.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index ffefdd5..c309544 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -1583,6 +1583,7 @@ namespace case node_pcdata:
text_output_escaped(writer, node.value(), opt1_to_type<0>());
+ if ((flags & format_raw) == 0) writer.write('\n');
break;
case node_cdata:
|