Spaces:
Sleeping
Sleeping
srijaydeshpande
commited on
Commit
•
973b9a6
1
Parent(s):
61e17ac
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def process_page(extracted_page):
|
|
49 |
if isinstance(element, LTTextContainer):
|
50 |
line_text = extract_text_and_normalize(element)
|
51 |
content.append(line_text)
|
52 |
-
content = re.sub('\n+', '
|
53 |
return content
|
54 |
|
55 |
|
|
|
49 |
if isinstance(element, LTTextContainer):
|
50 |
line_text = extract_text_and_normalize(element)
|
51 |
content.append(line_text)
|
52 |
+
content = re.sub('\n+', '\n', ''.join(content))
|
53 |
return content
|
54 |
|
55 |
|