aboutsummaryrefslogtreecommitdiff
path: root/mammoth
diff options
context:
space:
mode:
Diffstat (limited to 'mammoth')
-rw-r--r--mammoth/raw_text.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mammoth/raw_text.py b/mammoth/raw_text.py
index ccf50ed..5ffe59f 100644
--- a/mammoth/raw_text.py
+++ b/mammoth/raw_text.py
@@ -4,6 +4,8 @@ from . import documents
def extract_raw_text_from_element(element):
if isinstance(element, documents.Text):
return element.value
+ elif isinstance(element, documents.Tab):
+ return "\t"
else:
text = "".join(map(extract_raw_text_from_element, getattr(element, "children", [])))
if isinstance(element, documents.Paragraph):