From b8b4b08b3fa73d3fcd134fbeb56a3e25f27bc6ae Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Tue, 15 Jul 2025 10:04:49 +0800 Subject: [PATCH] 'commit' --- dsLightRag/Test/T3_GetArticle.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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()