From a5426f8e51d8f06ef7b446a53f39343ab60e7145 Mon Sep 17 00:00:00 2001 From: kmein Date: Tue, 22 May 2018 12:10:30 +0200 Subject: [PATCH] "Explicit is better than implicit." ~ Markdown generation for empty lines --- kevin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kevin.py b/kevin.py index 9fac409..8b1d9ad 100755 --- a/kevin.py +++ b/kevin.py @@ -57,7 +57,7 @@ class Text: title=self.title, maybe_author=self.author + ": " if with_author else "", maybe_type=" ("+self.type+")" if with_type else "", - content="\n".join(line + "\\" if line else line for line in self.content.splitlines())) + content="\n".join(line + "\\" if line else "" for line in self.content.splitlines())) if __name__ == "__main__":