aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2020-11-05 19:43:01 +0000
committerMichael Williamson <mike@zwobble.org>2020-11-05 19:43:01 +0000
commit8fde170b06becb51d2650b60dd28e23eaf862e25 (patch)
tree3e804a680218dabe24470ea71b7cdadb6e0d3fb3 /mammoth/docx
parentfd10b8d93b361e80bb1fc5b19f19465fc51d9b77 (diff)
Add style mapping for all caps
Diffstat (limited to 'mammoth/docx')
-rw-r--r--mammoth/docx/body_xml.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mammoth/docx/body_xml.py b/mammoth/docx/body_xml.py
index dcc704b..17cf31b 100644
--- a/mammoth/docx/body_xml.py
+++ b/mammoth/docx/body_xml.py
@@ -91,6 +91,7 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file, f
is_italic = read_boolean_element(properties.find_child("w:i"))
is_underline = read_underline_element(properties.find_child("w:u"))
is_strikethrough = read_boolean_element(properties.find_child("w:strike"))
+ is_all_caps = read_boolean_element(properties.find_child("w:caps"))
is_small_caps = read_boolean_element(properties.find_child("w:smallCaps"))
def add_complex_field_hyperlink(children):
@@ -111,6 +112,7 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file, f
is_italic=is_italic,
is_underline=is_underline,
is_strikethrough=is_strikethrough,
+ is_all_caps=is_all_caps,
is_small_caps=is_small_caps,
vertical_alignment=vertical_alignment,
font=font,