diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-07-27 19:41:15 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-07-27 19:41:15 +0200 |
commit | b61d5dd3555e906b21601ff75b3268c0f359283e (patch) | |
tree | d46b07daf1c26c0fc7d7254d3f0e1515e9ed36a8 /tex/context/base/mkiv/back-exp.lua | |
parent | 1add40ac787d36d3bd40e196aea752dff2cfb769 (diff) | |
download | context-b61d5dd3555e906b21601ff75b3268c0f359283e.tar.gz |
2018-07-27 19:21:00
Diffstat (limited to 'tex/context/base/mkiv/back-exp.lua')
-rw-r--r-- | tex/context/base/mkiv/back-exp.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/back-exp.lua b/tex/context/base/mkiv/back-exp.lua index 28929bc57..0cdeab6bb 100644 --- a/tex/context/base/mkiv/back-exp.lua +++ b/tex/context/base/mkiv/back-exp.lua @@ -2067,7 +2067,7 @@ do structures.tags.registerextradata("btx",function() local t = { "<btxdata>"} for dataset, used in sortedhash(tagsindatasets) do - t[#t+1] = publications.converttoxml(dataset,true,false,true,false,true) + t[#t+1] = publications.converttoxml(dataset,true,false,true,false,true,true) end t[#t+1] = "</btxdata>" return concat(t,"\n") @@ -3886,7 +3886,10 @@ local htmltemplate = [[ end t[#t+1] = "</extradata>" t[#t+1] = "</document>" - result = gsub(result,"</document>",concat(t,"\n")) + -- we use a function because otherwise we can have a bad capture index + result = gsub(result,"</document>",function() + return concat(t,"\n") + end) end -- done with ugly |