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)