diff options
| author | Michael Williamson <mike@zwobble.org> | 2020-08-15 12:38:25 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2020-08-15 12:38:25 +0100 |
| commit | 6c4474fe42f489f7f87361e4633060791b6eeb89 (patch) | |
| tree | bffdd476256c890f054494570cce2b9ec02c321e /tests | |
| parent | a352b5250e295e0fea9b5cc94d2f44194b8bdf72 (diff) | |
Support soft hyphens
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/docx/body_xml_tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -539,6 +539,13 @@ def no_break_hyphen_element_is_read_as_non_breaking_hyphen_character(): @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 def word_table_is_read_as_document_table_element(self): |
