diff --git a/dsLightRag/Test/T3_GetArticle.py b/dsLightRag/Test/T3_GetArticle.py index baaecd48..2f9c9e27 100644 --- a/dsLightRag/Test/T3_GetArticle.py +++ b/dsLightRag/Test/T3_GetArticle.py @@ -35,10 +35,7 @@ for line in lines: if not found_empty_line: content_after_empty_line = html_content -for x in content_after_empty_line.split("\n"): - if x.strip() == "" : - continue - print(x) - +content_after_empty_line = content_after_empty_line.replace("\n\n", "\n") +print(content_after_empty_line) # 关闭浏览器 driver.quit()