From 3bfa77d64e69d20609c8321a067bfa2651a7eabc Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 17 Jun 2015 15:49:04 +0100 Subject: Add support for strikethrough --- 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 e7e7e64..84cb6ea 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -130,6 +130,13 @@ def underline_can_be_configured_with_style_mapping(): assert_equal('

The Sunset Tree

', result.value) +@istest +def strikethrough_is_converted_to_s_element_by_default(): + with open(test_path("strikethrough.docx"), "rb") as fileobj: + result = mammoth.convert_to_html(fileobj=fileobj) + assert_equal("

Today's Special: Salmon Sold out

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