From d5a0201c54e815180bdffa67e037fe0183428cfd Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 10 Oct 2022 22:34:40 +0100 Subject: [PATCH] XML whitespace changes Remove non-conventional whitespace before closing tag with '>'. --- Source/Modules/xml.cxx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Source/Modules/xml.cxx b/Source/Modules/xml.cxx index 5830754b4..ed4213cc5 100644 --- a/Source/Modules/xml.cxx +++ b/Source/Modules/xml.cxx @@ -118,7 +118,7 @@ public: String *k; indent_level += 4; print_indent(0); - Printf(out, "\n", ++id, obj); + Printf(out, "\n", ++id, obj); indent_level += 4; Iterator ki; ki = First(obj); @@ -175,7 +175,7 @@ public: } indent_level -= 4; print_indent(0); - Printf(out, "\n"); + Printf(out, "\n"); indent_level -= 4; } @@ -183,7 +183,7 @@ public: Node *cobj; print_indent(0); - Printf(out, "<%s id=\"%ld\" addr=\"%p\" >\n", nodeType(obj), ++id, obj); + Printf(out, "<%s id=\"%ld\" addr=\"%p\">\n", nodeType(obj), ++id, obj); Xml_print_attributes(obj); cobj = firstChild(obj); if (cobj) { @@ -196,32 +196,32 @@ public: Printf(out, "\n"); } print_indent(0); - Printf(out, "\n", nodeType(obj)); + Printf(out, "\n", nodeType(obj)); } void Xml_print_parmlist(ParmList *p, const char* markup = "parmlist") { print_indent(0); - Printf(out, "<%s id=\"%ld\" addr=\"%p\" >\n", markup, ++id, p); + Printf(out, "<%s id=\"%ld\" addr=\"%p\">\n", markup, ++id, p); indent_level += 4; while (p) { print_indent(0); Printf(out, "\n", ++id); Xml_print_attributes(p); print_indent(0); - Printf(out, "\n"); + Printf(out, "\n"); p = nextSibling(p); } indent_level -= 4; print_indent(0); - Printf(out, "\n", markup); + Printf(out, "\n", markup); } void Xml_print_baselist(List *p) { print_indent(0); - Printf(out, "\n", ++id, p); + Printf(out, "\n", ++id, p); indent_level += 4; Iterator s; for (s = First(p); s.item; s = Next(s)) { @@ -232,7 +232,7 @@ public: } indent_level -= 4; print_indent(0); - Printf(out, "\n"); + Printf(out, "\n"); } String *Xml_escape_string(String *str) { @@ -272,21 +272,21 @@ public: void Xml_print_hash(Hash *p, const char *markup) { print_indent(0); - Printf(out, "<%s id=\"%ld\" addr=\"%p\" >\n", markup, ++id, p); + Printf(out, "<%s id=\"%ld\" addr=\"%p\">\n", markup, ++id, p); Xml_print_attributes(p); indent_level += 4; Iterator n = First(p); while (n.key) { print_indent(0); - Printf(out, "<%ssitem id=\"%ld\" addr=\"%p\" >\n", markup, ++id, n.item); + Printf(out, "<%ssitem id=\"%ld\" addr=\"%p\">\n", markup, ++id, n.item); Xml_print_attributes(n.item); print_indent(0); - Printf(out, "\n", markup); + Printf(out, "\n", markup); n = Next(n); } indent_level -= 4; print_indent(0); - Printf(out, "\n", markup); + Printf(out, "\n", markup); } };