diff options
author | Marius <mariausol@gmail.com> | 2014-01-08 16:40:26 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2014-01-08 16:40:26 +0200 |
commit | 6091f1997cb58861ee2d0c2b9000430e8238b631 (patch) | |
tree | baa55eb90f267baa1c5ad1364abd1595dbd90ce1 /tex/context/base/lxml-tab.lua | |
parent | 868b87aa072239464dc96017ddab0ba717d04da0 (diff) | |
download | context-6091f1997cb58861ee2d0c2b9000430e8238b631.tar.gz |
beta 2014.01.08 15:36
Diffstat (limited to 'tex/context/base/lxml-tab.lua')
-rw-r--r-- | tex/context/base/lxml-tab.lua | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/tex/context/base/lxml-tab.lua b/tex/context/base/lxml-tab.lua index 3e10eb96d..23734d970 100644 --- a/tex/context/base/lxml-tab.lua +++ b/tex/context/base/lxml-tab.lua @@ -1016,25 +1016,27 @@ local function verbose_document(e,handlers) end local function serialize(e,handlers,...) - local initialize = handlers.initialize - local finalize = handlers.finalize - local functions = handlers.functions - if initialize then - local state = initialize(...) - if not state == true then - return state + if e then + local initialize = handlers.initialize + local finalize = handlers.finalize + local functions = handlers.functions + if initialize then + local state = initialize(...) + if not state == true then + return state + end + end + local etg = e.tg + if etg then + (functions[etg] or functions["@el@"])(e,handlers) + -- elseif type(e) == "string" then + -- functions["@tx@"](e,handlers) + else + functions["@dc@"](e,handlers) -- dc ? + end + if finalize then + return finalize() end - end - local etg = e.tg - if etg then - (functions[etg] or functions["@el@"])(e,handlers) - -- elseif type(e) == "string" then - -- functions["@tx@"](e,handlers) - else - functions["@dc@"](e,handlers) -- dc ? - end - if finalize then - return finalize() end end |