From 2c57c1014ae8e44e62021ea2cc36c54352389632 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 14 Mar 2016 20:46:13 +0000 Subject: Implement collapsing using HTML AST --- tests/mammoth_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/mammoth_tests.py') diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index d749b4c..677a97b 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -195,21 +195,21 @@ def text_boxes_are_read(): def underline_is_ignored_by_default(): with open(test_path("underline.docx"), "rb") as fileobj: result = mammoth.convert_to_html(fileobj=fileobj) - assert_equal('

The Sunset Tree

', result.value) + assert_equal('

The Sunset Tree

', result.value) @istest def underline_can_be_configured_with_convert_underline_option(): with open(test_path("underline.docx"), "rb") as fileobj: result = mammoth.convert_to_html(fileobj=fileobj, convert_underline=mammoth.underline.element("em")) - assert_equal('

The Sunset Tree

', result.value) + 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) + assert_equal('

The Sunset Tree

', result.value) @istest -- cgit v1.2.3