From 2e0ed8284b7488f9664bf8dba9aae90688862cc3 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 14 Apr 2016 00:30:24 -0700 Subject: Remove extra space in an empty tag for format_raw When using format_raw the space in the empty tag () is the only character that does not have to be there; so format_raw almost results in a minimal XML but not quite. It's pretty unlikely that this is crucial for any users - the formatting change should be benign, and it's better to improve format_raw than to add yet another flag. Fixes #87. --- tests/test_dom_text.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_dom_text.cpp') diff --git a/tests/test_dom_text.cpp b/tests/test_dom_text.cpp index 7582460..8f62e49 100644 --- a/tests/test_dom_text.cpp +++ b/tests/test_dom_text.cpp @@ -403,16 +403,16 @@ TEST_XML(dom_text_middle, "notthisonetext") CHECK_STRING(t.get(), STR("text")); t.set(STR("notext")); - CHECK_NODE(node, STR("notthisonenotext")); + CHECK_NODE(node, STR("notthisonenotext")); CHECK(node.remove_child(t.data())); CHECK(!t); - CHECK_NODE(node, STR("notthisone")); + CHECK_NODE(node, STR("notthisone")); t.set(STR("yestext")); CHECK(t); - CHECK_NODE(node, STR("notthisoneyestext")); + CHECK_NODE(node, STR("notthisoneyestext")); CHECK(t.data() == node.last_child()); } -- cgit v1.2.3