From ff408f0c6f544bf88c079fd7e3b54705f40bb827 Mon Sep 17 00:00:00 2001 From: Len Date: Thu, 4 Feb 2021 06:01:29 +0100 Subject: [PATCH] add support for noBreakHyphen --- docx2txt/docx2txt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docx2txt/docx2txt.py b/docx2txt/docx2txt.py index 0dac072..1cfbeb6 100755 --- a/docx2txt/docx2txt.py +++ b/docx2txt/docx2txt.py @@ -66,6 +66,8 @@ def xml2text(xml): text += '\n' elif child.tag == qn("w:p"): text += '\n\n' + elif child.tag == qn("w:noBreakHyphen"): + text += '-' return text