From 0b95f9df528e9a25c5196a0b0b97e3ea2ecfcfd7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Oct 2019 13:01:44 +0100 Subject: [PATCH] Remove carriage return --- posts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/posts.py b/posts.py index f05a5d3fc..ea25350b1 100644 --- a/posts.py +++ b/posts.py @@ -2040,12 +2040,11 @@ def createBoxBase(session,baseDir: str,boxname: str, \ maxPostCtr=itemsPerPage*pageNumber with open(indexFilename, 'r') as indexFile: for postFilename in indexFile: - postsInBox[postsCtr]=os.path.join(boxDir, postFilename) + postsInBox[postsCtr]=os.path.join(boxDir, postFilename.replace('\n','')) postsCtr+=1 if maxPostCtr: if postsCtr>=maxPostCtr: break - print(str(postsInBox)) else: postsCtr=createBoxIndex(boxDir,postsInBoxDict)