diff options
Diffstat (limited to 'Master/texmf-dist/scripts/make4ht/domfilters/make4ht-odtimagesize.lua')
-rw-r--r-- | Master/texmf-dist/scripts/make4ht/domfilters/make4ht-odtimagesize.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/make4ht/domfilters/make4ht-odtimagesize.lua b/Master/texmf-dist/scripts/make4ht/domfilters/make4ht-odtimagesize.lua index 92ce68dee4c..4ce8f0d92ea 100644 --- a/Master/texmf-dist/scripts/make4ht/domfilters/make4ht-odtimagesize.lua +++ b/Master/texmf-dist/scripts/make4ht/domfilters/make4ht-odtimagesize.lua @@ -7,8 +7,8 @@ return function(dom) local image = images[1] local width = image:get_attribute("svg:width") local height = image:get_attribute("svg:height") - frame:set_attribute("svg:width", width) - frame:set_attribute("svg:height", height) + if widht then frame:set_attribute("svg:width", width) end + if height then frame:set_attribute("svg:height", height) end print("image dimensions", width, height) end end |