Remove newline

main
Bob Mottram 2020-05-18 12:01:40 +01:00
parent ca76479059
commit bc09384db6
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ def noOfBlogReplies(baseDir: str, httpPrefix: str, translate: {},
str(len(removals)) + ' entries')
with open(postFilename, "w") as f:
for replyPostId in lines:
replyPostId = replyPostId.replace('\n', '')
if replyPostId not in removals:
f.write(replyPostId + '\n')