diff options
author | Hans Hagen <pragma@wxs.nl> | 2009-09-25 09:42:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2009-09-25 09:42:00 +0200 |
commit | 43986f8edd2afd919afbb9988cb6778fc3c02077 (patch) | |
tree | d3dea48ceb4a87c321b828be8aaf8df1e21bd653 /tex/context/base/lxml-tab.lua | |
parent | debb4feb8ae38805ed81932e37c58285cb6dcc1c (diff) | |
download | context-43986f8edd2afd919afbb9988cb6778fc3c02077.tar.gz |
beta 2009.09.25 09:42
Diffstat (limited to 'tex/context/base/lxml-tab.lua')
-rw-r--r-- | tex/context/base/lxml-tab.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tex/context/base/lxml-tab.lua b/tex/context/base/lxml-tab.lua index 407950086..52e04befd 100644 --- a/tex/context/base/lxml-tab.lua +++ b/tex/context/base/lxml-tab.lua @@ -500,6 +500,12 @@ alternative.</p> local fallbackhandle = (tex and tex.sprint) or io.write +local serializer + +function xml.setserializer(f) + serializer = f +end + local function serialize(e, handle, textconverter, attributeconverter, specialconverter, nocommands) if not e then return @@ -519,9 +525,8 @@ local function serialize(e, handle, textconverter, attributeconverter, specialco end end end - local xc = xml.command - if xc then - xc(e,ec) + if serializer then + serializer(e,ec) return end end |