summaryrefslogtreecommitdiff
path: root/tex/context/base/back-exp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/back-exp.lua')
-rw-r--r--tex/context/base/back-exp.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/tex/context/base/back-exp.lua b/tex/context/base/back-exp.lua
index a4127e6be..4b3f83a3d 100644
--- a/tex/context/base/back-exp.lua
+++ b/tex/context/base/back-exp.lua
@@ -2836,6 +2836,7 @@ local xmlpreamble = [[
exporter version : %exportversion%
-->
+
]]
local flushtree = wrapups.flushtree
@@ -3332,6 +3333,14 @@ local htmltemplate = [[
-- representation that uses verbose element names and carries information in
-- attributes
+
+ local data = tree.data
+ for i=1,#data do
+ if data[i].tg ~= "document" then
+ data[i] = { }
+ end
+ end
+
local result = allcontent(tree)
local results = concat {