diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-07-21 12:19:15 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-07-21 12:19:15 +0100 |
| commit | 500a2aca545c47b9677bd85e55b9b24dc4ec9c7c (patch) | |
| tree | 61a7bb91ae91ffd498b5ad1c2e5aac4178f72bb3 /mammoth/docx | |
| parent | 6f7fbaa001eda6aca41f9a4f54f526ef7b87b738 (diff) | |
Add style mapping for small caps
Diffstat (limited to 'mammoth/docx')
| -rw-r--r-- | mammoth/docx/body_xml.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mammoth/docx/body_xml.py b/mammoth/docx/body_xml.py index 312e9de..12951c9 100644 --- a/mammoth/docx/body_xml.py +++ b/mammoth/docx/body_xml.py @@ -84,6 +84,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_boolean_element(properties.find_child("w:u")) is_strikethrough = read_boolean_element(properties.find_child("w:strike")) + is_small_caps = read_boolean_element(properties.find_child("w:smallCaps")) def add_complex_field_hyperlink(children): hyperlink_href = current_hyperlink_href() @@ -103,6 +104,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_small_caps=is_small_caps, vertical_alignment=vertical_alignment, font=font, )) |
