dlxj commited on
Commit ·
bc0e58f
1
Parent(s): 08daf36
fix page_texts
Browse files
exinfo.py
CHANGED
|
@@ -49,7 +49,10 @@ if __name__ == '__main__':
|
|
| 49 |
sign_count = 0
|
| 50 |
stem = Path(pt).stem
|
| 51 |
pageId = pageNames_pageIds[stem]
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
| 53 |
page_text = page_text.replace(' ', '')
|
| 54 |
pt_boxsnew = pt.replace('.boxs', '.boxsnew')
|
| 55 |
|
|
|
|
| 49 |
sign_count = 0
|
| 50 |
stem = Path(pt).stem
|
| 51 |
pageId = pageNames_pageIds[stem]
|
| 52 |
+
if pageId in page_texts:
|
| 53 |
+
page_text = page_texts[pageId]
|
| 54 |
+
else:
|
| 55 |
+
page_text = ''
|
| 56 |
page_text = page_text.replace(' ', '')
|
| 57 |
pt_boxsnew = pt.replace('.boxs', '.boxsnew')
|
| 58 |
|