From a99483b3fc945f3161a091b49583b2b929b1ce03 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 2 May 2020 16:13:02 +0000 Subject: [PATCH] Tidying --- git.py | 4 ++-- inbox.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/git.py b/git.py index 5b6977c6..7771effb 100644 --- a/git.py +++ b/git.py @@ -68,8 +68,8 @@ def receiveGitPatch(baseDir: str, nickname: str, domain: str, # replace html formatting, so that it's more # like the original patch file - contentStr = content.replace('
','\n').replace('
','\n') - contentStr = contentStr.replace('

','').replace('

','\n') + contentStr = content.replace('
', '\n').replace('
', '\n') + contentStr = contentStr.replace('

', '').replace('

', '\n') patchLines = contentStr.split('\n') patchFilename = None diff --git a/inbox.py b/inbox.py index 837a6c03..b7ba3197 100644 --- a/inbox.py +++ b/inbox.py @@ -2052,7 +2052,7 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int, print('Debug git 1') if isinstance(postJsonObject['object'], dict): print('Debug git 2') - pprint(postJsonObject) + pprint(postJsonObject) if postJsonObject['object'].get('content') and \ postJsonObject['object'].get('summary'): print('Debug git 3')