Permalink
Browse files

This will insert tabs when they are found.

  • Loading branch information...
1 parent 0517134 commit 09c8dd15d0bc252cdaeae10017582c55e5436d93 @whatisdot whatisdot 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 09c8dd1

Please sign in to comment.