From 1e31a05f1925671e4fee91198dc49eb768cb5687 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 6 Nov 2020 11:22:50 +0000 Subject: [PATCH] Remove any line ending --- posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 4071911a..444e3228 100644 --- a/posts.py +++ b/posts.py @@ -1238,7 +1238,7 @@ def createBlogPost(baseDir: str, with open(citationsFilename, "r") as f: citations = f.readlines() for line in citations: - sections = line.split(citationsSeparator) + sections = line.strip().split(citationsSeparator) dateStr = sections[0] title = sections[1] link = sections[2]