We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92f2f24 commit a04ed29Copy full SHA for a04ed29
mammoth/docx/body_xml.py
@@ -10,6 +10,8 @@
10
from .styles_xml import Styles
11
from .uris import replace_fragment, uri_to_zip_entry_name
12
13
+EMU_TO_PIXEL = 1 / 9525
14
+
15
if sys.version_info >= (3, ):
16
unichr = chr
17
@@ -395,6 +397,9 @@ def inline(element):
395
397
.find_children("a:blip")
396
398
return _read_blips(blips, alt_text)
399
400
+ def _emu_to_pixel(emu):
401
+ return round(int(emu) * EMU_TO_PIXEL)
402
403
def _read_blips(blips, alt_text):
404
return _ReadResult.concat(lists.map(lambda blip: _read_blip(blip, alt_text), blips))
405
0 commit comments