diff options
author | Hans Hagen <pragma@wxs.nl> | 2016-11-17 15:04:15 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-11-17 15:04:15 +0100 |
commit | 2d2fd9322ed83babf699d548166e43ffa10f3413 (patch) | |
tree | 5d6f27777bcc91d3574c95f278d7bb08fadf5784 /tex/context/base/mkiv/lxml-tex.lua | |
parent | a1f166da06ae1a6bb6be7a1d4ee23d00751165a9 (diff) | |
download | context-2d2fd9322ed83babf699d548166e43ffa10f3413.tar.gz |
2016-11-17 14:26:00
Diffstat (limited to 'tex/context/base/mkiv/lxml-tex.lua')
-rw-r--r-- | tex/context/base/mkiv/lxml-tex.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/lxml-tex.lua b/tex/context/base/mkiv/lxml-tex.lua index eb7d15de8..c9675d435 100644 --- a/tex/context/base/mkiv/lxml-tex.lua +++ b/tex/context/base/mkiv/lxml-tex.lua @@ -1404,7 +1404,7 @@ local function attribute(collected,a,default) end end -local function chainattribute(collected,arguments) -- todo: optional levels +local function chainattribute(collected,arguments,default) -- todo: optional levels if collected and #collected > 0 then local e = collected[1] while e do @@ -1413,6 +1413,7 @@ local function chainattribute(collected,arguments) -- todo: optional levels local a = at[arguments] if a then contextsprint(notcatcodes,a) + return end else break -- error @@ -1420,6 +1421,9 @@ local function chainattribute(collected,arguments) -- todo: optional levels e = e.__p__ end end + if default then + contextsprint(notcatcodes,default) + end end local function chainpath(collected,nonamespace) |