util.xml: Use variable instead of constant for consistency (thanks Thijs)
authorMatthew Wild <mwild1@gmail.com>
Sun, 26 Dec 2021 20:37:20 +0000
changeset 12125 2162e86029b6
parent 12124 0fcd80a55f15
child 12126 50795249b7be
util.xml: Use variable instead of constant for consistency (thanks Thijs)
util/xml.lua
--- a/util/xml.lua	Sun Dec 26 00:05:16 2021 +0100
+++ b/util/xml.lua	Sun Dec 26 20:37:20 2021 +0000
@@ -64,7 +64,7 @@
 		function handler:EndElement()
 			stanza:up();
 		end
-		local parser = lxp.new(handler, "\1");
+		local parser = lxp.new(handler, ns_separator);
 		local ok, err, line, col = parser:parse(xml);
 		if ok then ok, err, line, col = parser:parse(); end
 		--parser:close();