Skip to content

Commit 3665142

Browse files
committed
fix: fix all newlines
1 parent b7ebde3 commit 3665142

5 files changed

Lines changed: 3716 additions & 1 deletion

File tree

llm_web_kit/main_html_parser/parser/layout_batch_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def htmll_to_content2(self, body_str):
302302
else:
303303
parent.text = (parent.text or '') + (element.tail or '')
304304
parent.remove(element)
305-
self.add_newline_after_tags(body, ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'br', 'div', 'p', 'li'])
305+
# self.add_newline_after_tags(body, ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'br', 'div', 'p', 'li'])
306306
output = []
307307
main_content = re.split(r'\n{1,}', self.get_text_with_newlines(body))
308308
for line in main_content:

0 commit comments

Comments
 (0)