mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
tools: Allow processing instructions in some XML parsing tools
IANA registry files have XSLT references, which are harmless to ignore.
This commit is contained in:
parent
99a880ebe5
commit
e6f20da22f
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
-- Generate net/http/codes.lua from IANA HTTP status code registry
|
||||
|
||||
local xml = require "util.xml";
|
||||
local registry = xml.parse(io.read("*a"));
|
||||
local registry = xml.parse(io.read("*a"), { allow_processing_instructions = true });
|
||||
|
||||
io.write([[
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue