Remove carriage return

main2
Bob Mottram 2019-10-20 13:01:44 +01:00
parent 478b9e7909
commit 0b95f9df52
1 changed files with 1 additions and 2 deletions

View File

@ -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)