diff options
author | Norbert Preining <norbert@preining.info> | 2021-10-12 03:00:58 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-10-12 03:00:58 +0000 |
commit | 20b79660fb560eb1dd8e80d44837e0d4c17ca03c (patch) | |
tree | a96f0dee853efcdecf8395053a4919908aeeb71a /support/make4ht/formats/make4ht-odt.lua | |
parent | aac7fdc4c391b318efbdee17381ac83783b2fbbb (diff) |
CTAN sync 202110120300
Diffstat (limited to 'support/make4ht/formats/make4ht-odt.lua')
-rw-r--r-- | support/make4ht/formats/make4ht-odt.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/support/make4ht/formats/make4ht-odt.lua b/support/make4ht/formats/make4ht-odt.lua index 257e597bb3..f3721eba00 100644 --- a/support/make4ht/formats/make4ht-odt.lua +++ b/support/make4ht/formats/make4ht-odt.lua @@ -127,7 +127,7 @@ local function fix_picture_sizes(tmpdir) end local content = f:read("*all") or "" f:close() - local status, domobject = pcall(function() + local status, dom= pcall(function() return domobject.parse(content) end) if not status then @@ -224,13 +224,13 @@ function M.modify_build(make) -- expanded in tex4ht.env in Miktex or Debian call_xtpipes(make) -- fix the image dimensions wrongly set by xtpipes - local domfilters = domfilter {"t4htlinks", "odtpartable"} + local domfilters = domfilter({"t4htlinks", "odtpartable"}, "odtfilters") make:match("4oo$", domfilters) - -- fixes for mathml - local mathmldomfilters = domfilter {"joincharacters","mathmlfixes"} - make:match("4om$", mathmldomfilters) -- execute it before xtpipes, because we don't want xtpipes to mess with t4htlink elements move_matches(make) + -- fixes for mathml + local mathmldomfilters = domfilter({"joincharacters","mathmlfixes"}, "mathmlfilters") + make:match("4om$", mathmldomfilters) -- convert XML entities for Unicode characters produced by Xtpipes to characters local fixentities = filter {"entities-to-unicode", remove_xtpipes} make:match("4oo", fixentities) |