Skip to content

Commit 647ee97

Browse files
committed
Merge pull request mikemaccana#17 from whatisdot/master
Tabs are important too.
2 parents 0517134 + 09c8dd1 commit 647ee97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,8 @@ def getdocumenttext(document):
752752
if element.tag == '{'+nsprefixes['w']+'}t':
753753
if element.text:
754754
paratext = paratext+element.text
755+
elif element.tag == '{'+nsprefixes['w']+'}tab':
756+
paratext = paratext + '\t'
755757
# Add our completed paragraph text to the list of paragraph text
756758
if not len(paratext) == 0:
757759
paratextlist.append(paratext)

0 commit comments

Comments
 (0)