Permalink
Browse files

Merge pull request #17 from whatisdot/master

Tabs are important too.
  • Loading branch information...
2 parents 0517134 + 09c8dd1 commit 647ee9753136b3a8a1ec1aa5f3cbe679d495bc6c @mikemaccana committed May 19, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 docx.py
View
@@ -752,6 +752,8 @@ def getdocumenttext(document):
if element.tag == '{'+nsprefixes['w']+'}t':
if element.text:
paratext = paratext+element.text
+ elif element.tag == '{'+nsprefixes['w']+'}tab':
+ paratext = paratext + '\t'
# Add our completed paragraph text to the list of paragraph text
if not len(paratext) == 0:
paratextlist.append(paratext)

0 comments on commit 647ee97

Please sign in to comment.