From 147fabb2b2e00f7790304b7a1e1f40cdb564cb4f Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 17 Jun 2015 15:05:19 +0100 Subject: Support underlines in style map --- tests/mammoth_tests.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/mammoth_tests.py') diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index a1b396c..e7e7e64 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -123,6 +123,13 @@ def underline_can_be_configured_with_convert_underline_option(): assert_equal('

The Sunset Tree

', result.value) +@istest +def underline_can_be_configured_with_style_mapping(): + with open(test_path("underline.docx"), "rb") as fileobj: + result = mammoth.convert_to_html(fileobj=fileobj, style_map="u => em") + assert_equal('

The Sunset Tree

', result.value) + + @istest def transform_document_is_applied_to_document_before_conversion(): def transform_document(document): -- cgit v1.2.3