Replace newlines

merge-requests/8/head
Bob Mottram 2020-10-28 09:53:15 +00:00
parent 331e280422
commit afe385d5d2
1 changed files with 3 additions and 2 deletions

View File

@ -108,7 +108,7 @@ def manualApproveFollowRequest(session, baseDir: str,
if approveHandle not in approveFollowsStr: if approveHandle not in approveFollowsStr:
print('Manual follow accept: ' + approveHandle + print('Manual follow accept: ' + approveHandle +
' not in requests file ' + approveFollowsFilename + ' not in requests file ' + approveFollowsFilename +
'\n"' + approveFollowsStr + '"') '\n"' + approveFollowsStr.replace('\n' ' ') + '"')
exists = False exists = False
elif '@' in approveHandle: elif '@' in approveHandle:
reqNick = approveHandle.split('@')[0] reqNick = approveHandle.split('@')[0]
@ -125,7 +125,8 @@ def manualApproveFollowRequest(session, baseDir: str,
approveHandleFull = reqPrefix + '/accounts/' + reqNick approveHandleFull = reqPrefix + '/accounts/' + reqNick
if not exists: if not exists:
print('Manual follow accept: ' + approveHandleFull + print('Manual follow accept: ' + approveHandleFull +
' not in requests file "' + approveFollowsStr + ' not in requests file "' +
approveFollowsStr.replace('\n' ' ') +
'" ' + approveFollowsFilename) '" ' + approveFollowsFilename)
if not exists: if not exists:
return return