bstraehle commited on
Commit
4352501
·
verified ·
1 Parent(s): acc8cb5

Update util.py

Browse files
Files changed (1) hide show
  1. util.py +2 -5
util.py CHANGED
@@ -39,11 +39,8 @@ def read_docx(file_path):
39
  for block in doc.element.body:
40
  if block.tag.endswith("p"):
41
  for paragraph in doc.paragraphs:
42
- if paragraph._element == block:
43
- if paragraph.style.name.startswith("Heading"):
44
- text.append("\n" + paragraph.text + "\n")
45
- elif paragraph.text:
46
- text.append(paragraph.text)
47
  elif block.tag.endswith("tbl"):
48
  for table in doc.tables:
49
  if table._element == block:
 
39
  for block in doc.element.body:
40
  if block.tag.endswith("p"):
41
  for paragraph in doc.paragraphs:
42
+ if paragraph._element == block and paragraph.text:
43
+ text.append(paragraph.text)
 
 
 
44
  elif block.tag.endswith("tbl"):
45
  for table in doc.tables:
46
  if table._element == block: