From e1013bfcd83174cfe2076c76cb03e960f7998106 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 12 Oct 2009 16:27:05 +0000 Subject: [PATCH] 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 --- src/pugixml.cpp | 1 + 1 file changed, 1 insertion(+) 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: