Changeset

12121:2162e86029b6

util.xml: Use variable instead of constant for consistency (thanks Thijs)
author Matthew Wild <mwild1@gmail.com>
date Sun, 26 Dec 2021 20:37:20 +0000
parents 12120:0fcd80a55f15
children 12122:50795249b7be
files util/xml.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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();