srijaydeshpande commited on
Commit
973b9a6
1 Parent(s): 61e17ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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+', ' ', ''.join(content))
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