From 80f7d85eb2289997178d3c89cd3ad23b284ed342 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 5 Oct 2020 19:53:41 +0100 Subject: [PATCH] Ensure that there is an extra newline --- daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon.py b/daemon.py index 626d50a0..2b242ed2 100644 --- a/daemon.py +++ b/daemon.py @@ -2896,6 +2896,8 @@ class PubServer(BaseHTTPRequestHandler): newswireTrustedFilename = baseDir + '/accounts/newswiretrusted.txt' if fields.get('trustedNewswire'): newswireTrusted = fields['trustedNewswire'] + if not newswireTrusted.endswith('\n'): + newswireTrusted += '\n' trustFile = open(newswireTrustedFilename, "w+") if trustFile: trustFile.write(newswireTrusted)