From a18385e1e09794f8ed46d99883e1e00bf554f69a Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Tue, 19 Oct 2010 15:38:10 +0000 Subject: If an element node has the only child, and it is of CDATA type, then the extra indentation is omitted (previously this behavior only held for PCDATA children) git-svn-id: http://pugixml.googlecode.com/svn/trunk@770 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_write.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test_write.cpp') diff --git a/tests/test_write.cpp b/tests/test_write.cpp index 0904b21..3871bf6 100644 --- a/tests/test_write.cpp +++ b/tests/test_write.cpp @@ -45,6 +45,13 @@ TEST_XML(write_cdata_escape, "") CHECK_NODE(doc, STR("2]]]]>3]]>")); } +TEST_XML(write_cdata_inner, "") +{ + CHECK_NODE(doc, STR("")); + CHECK_NODE_EX(doc, STR("\n"), STR(""), 0); +} + + TEST_XML_FLAGS(write_comment, "", parse_default | parse_comments) { CHECK_NODE(doc, STR("")); -- cgit v1.2.3