diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-04-14 00:30:24 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-04-14 00:30:24 -0700 |
commit | 2e0ed8284b7488f9664bf8dba9aae90688862cc3 (patch) | |
tree | df01542bd9a856144ba1bd8f3e2bc1d444c7478a /tests/test_dom_text.cpp | |
parent | c6539ccef04ded1427831aa58404635af22e7634 (diff) |
Remove extra space in an empty tag for format_raw
When using format_raw the space in the empty tag (<node />) 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.
Diffstat (limited to 'tests/test_dom_text.cpp')
-rw-r--r-- | tests/test_dom_text.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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, "<node><c1>notthisone</c1>text<c2/></node>") CHECK_STRING(t.get(), STR("text")); t.set(STR("notext")); - CHECK_NODE(node, STR("<node><c1>notthisone</c1>notext<c2 /></node>")); + CHECK_NODE(node, STR("<node><c1>notthisone</c1>notext<c2/></node>")); CHECK(node.remove_child(t.data())); CHECK(!t); - CHECK_NODE(node, STR("<node><c1>notthisone</c1><c2 /></node>")); + CHECK_NODE(node, STR("<node><c1>notthisone</c1><c2/></node>")); t.set(STR("yestext")); CHECK(t); - CHECK_NODE(node, STR("<node><c1>notthisone</c1><c2 />yestext</node>")); + CHECK_NODE(node, STR("<node><c1>notthisone</c1><c2/>yestext</node>")); CHECK(t.data() == node.last_child()); } |