diff options
Diffstat (limited to 'tex/context/base/back-exp.lua')
-rw-r--r-- | tex/context/base/back-exp.lua | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tex/context/base/back-exp.lua b/tex/context/base/back-exp.lua index f51025cf8..d4133396b 100644 --- a/tex/context/base/back-exp.lua +++ b/tex/context/base/back-exp.lua @@ -456,16 +456,24 @@ local function checkdocument(root) local di = data[i] local tg = di.tg if tg == "noexport" then -data[i] = false --- di.element = "" --- di.data = nil -- { } + local ud = userdata[di.fulltag] + local comment = ud and ud.comment + if comment then + di.element = "comment" + di.data = { { content = comment } } + ud.comment = nil + else + data[i] = false + -- di.element = "" + -- di.data = nil + end elseif di.content then -- okay elseif tg == "ignore" then di.element = "" checkdocument(di) else -checkdocument(di) + checkdocument(di) -- new, else no noexport handling end end end |