From 500a2aca545c47b9677bd85e55b9b24dc4ec9c7c Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 21 Jul 2017 12:19:15 +0100 Subject: Add style mapping for small caps --- mammoth/docx/body_xml.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mammoth/docx') 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, )) -- cgit v1.2.3