From ceb449e4774a343362fbadb0dfc2f890e6fee9c9 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 13 Oct 2020 21:18:04 +0200 Subject: [PATCH] add a line between the header and the content --- url2markdown/file.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/url2markdown/file.py b/url2markdown/file.py index 545b6c1..9018a6e 100644 --- a/url2markdown/file.py +++ b/url2markdown/file.py @@ -5,4 +5,6 @@ def write_to_file(article, header): markdown = markdownify.markdownify(article.html, heading_style='ATX') with open(str(article.title) + ".md", 'w') as f: f.write(header) + f.write('------') + f.write('\n') f.write(markdown)