bstraehle commited on
Commit
5667912
·
verified ·
1 Parent(s): d4ca6c7

Update util.py

Browse files
Files changed (1) hide show
  1. util.py +8 -8
util.py CHANGED
@@ -39,14 +39,14 @@ def read_docx(file_path):
39
  for para in doc.paragraphs:
40
  text.append(para.text)
41
 
42
- for table in doc.tables:
43
- for row in table.rows:
44
- row_text = []
45
-
46
- for cell in row.cells:
47
- row_text.append(cell.text)
48
-
49
- text.append(" | ".join(row_text))
50
 
51
  return "\n".join(text)
52
 
 
39
  for para in doc.paragraphs:
40
  text.append(para.text)
41
 
42
+ for table in doc.tables:
43
+ for row in table.rows:
44
+ row_text = []
45
+
46
+ for cell in row.cells:
47
+ row_text.append(cell.text)
48
+
49
+ text.append(" | ".join(row_text))
50
 
51
  return "\n".join(text)
52