From afe385d5d2117025a50864fa8d284d55883fa56a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 28 Oct 2020 09:53:15 +0000 Subject: [PATCH] Replace newlines --- manualapprove.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manualapprove.py b/manualapprove.py index 23dce2993..3b8682de2 100644 --- a/manualapprove.py +++ b/manualapprove.py @@ -108,7 +108,7 @@ def manualApproveFollowRequest(session, baseDir: str, if approveHandle not in approveFollowsStr: print('Manual follow accept: ' + approveHandle + ' not in requests file ' + approveFollowsFilename + - '\n"' + approveFollowsStr + '"') + '\n"' + approveFollowsStr.replace('\n' ' ') + '"') exists = False elif '@' in approveHandle: reqNick = approveHandle.split('@')[0] @@ -125,7 +125,8 @@ def manualApproveFollowRequest(session, baseDir: str, approveHandleFull = reqPrefix + '/accounts/' + reqNick if not exists: print('Manual follow accept: ' + approveHandleFull + - ' not in requests file "' + approveFollowsStr + + ' not in requests file "' + + approveFollowsStr.replace('\n' ' ') + '" ' + approveFollowsFilename) if not exists: return