Spaces:
Running
on
Zero
Running
on
Zero
srijaydeshpande
commited on
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 |
|