diff options
author | Karl Berry <karl@freefriends.org> | 2018-11-02 20:53:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-11-02 20:53:26 +0000 |
commit | 2a7b97e017436324428f7fd3ff2c96258a88b283 (patch) | |
tree | b59ff296a4cc991093a503b572cbeb2dc3dfb047 /Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua | |
parent | 81ff1d170397a06ef756be4f72edcbb12886d187 (diff) |
luaxml (2nov18)
git-svn-id: svn://tug.org/texlive/trunk@49055 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua b/Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua index c764c91fb7e..767ba32c669 100644 --- a/Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua +++ b/Master/texmf-dist/tex/luatex/luaxml/luaxml-domobject.lua @@ -113,6 +113,10 @@ local function serialize_dom(parser, current,level, output) elseif xtype == "PI" then -- it contains spurious _text attribute attributes["_text"] = nil + elseif xtype == "DECL" and name =="xml" then + -- the xml declaration attributes must be in a correct order + insert("<?xml version='%s' encoding='%s' ?>", attributes.version, attributes.encoding) + return output end start(xtype, name, attributes) |