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)