X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=fallbacks%2Flxp.lua;h=ac1c9a03d2ba6889be98b303b9fc9700d7f9770a;hb=2a9b2e63a4b34b2cdb9314b916f4f76ff6197115;hp=6d3297d1559983b19e0da7edc76ac594b26734ce;hpb=bca9d41c435fcce947eb9ee166efae96becbac5f;p=prosody.git diff --git a/fallbacks/lxp.lua b/fallbacks/lxp.lua index 6d3297d1..ac1c9a03 100644 --- a/fallbacks/lxp.lua +++ b/fallbacks/lxp.lua @@ -61,7 +61,7 @@ local function parser(data, handlers, ns_separator) while #data == 0 do data = coroutine.yield(); end return data:sub(1,1); end - + local ns = { xml = "http://www.w3.org/XML/1998/namespace" }; ns.__index = ns; local function apply_ns(name, dodefault) @@ -100,7 +100,7 @@ local function parser(data, handlers, ns_separator) ns = getmetatable(ns); return tag; end - + while true do if peek() == "<" then local elem = read_until(">"):sub(2,-2);