main
Bob Mottram 2020-05-02 16:13:02 +00:00
parent 2956856e76
commit a99483b3fc
2 changed files with 3 additions and 3 deletions

4
git.py
View File

@ -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('<br>','\n').replace('<br />','\n')
contentStr = contentStr.replace('<p>','').replace('</p>','\n')
contentStr = content.replace('<br>', '\n').replace('<br />', '\n')
contentStr = contentStr.replace('<p>', '').replace('</p>', '\n')
patchLines = contentStr.split('\n')
patchFilename = None