From 6c4474fe42f489f7f87361e4633060791b6eeb89 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 15 Aug 2020 12:38:25 +0100 Subject: Support soft hyphens --- tests/docx/body_xml_tests.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/docx/body_xml_tests.py b/tests/docx/body_xml_tests.py index 17d631d..c9863bf 100644 --- a/tests/docx/body_xml_tests.py +++ b/tests/docx/body_xml_tests.py @@ -538,6 +538,13 @@ def no_break_hyphen_element_is_read_as_non_breaking_hyphen_character(): assert_equal(documents.text(unichr(0x2011)), tab) +@istest +def soft_hyphen_element_is_read_as_soft_hyphen_character(): + element = xml_element("w:softHyphen") + tab = _read_and_get_document_xml_element(element) + assert_equal(documents.text(u"\u00ad"), tab) + + @istest class TableTests(object): @istest -- cgit v1.2.3