From 7e83ff0a798cf272ed731bddd07ac93de80827f4 Mon Sep 17 00:00:00 2001 From: ZIJUN ZHENG Date: Wed, 29 Mar 2023 17:39:51 +0800 Subject: [PATCH] Update chat_paper.py Fix the output format to make it easier for the editor to recognize --- chat_paper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat_paper.py b/chat_paper.py index 8cc7cdd..8467c35 100644 --- a/chat_paper.py +++ b/chat_paper.py @@ -257,7 +257,7 @@ def summary_with_chat(self, paper_list): pass mode = 'w' if paper_index == 0 else 'a' file_name = os.path.join(export_path, date_str+'-'+self.validateTitle(paper.title[:80])+"."+self.file_format) - self.export_to_markdown("\n".join(htmls), file_name=file_name, mode=mode) + self.export_to_markdown("\n".join([item.strip() for item in htmls]), file_name=file_name, mode=mode) # file_name = os.path.join(export_path, date_str+'-'+self.validateTitle(paper.title)+".md") # self.export_to_markdown("\n".join(htmls), file_name=file_name, mode=mode)