main
Bob Mottram 2020-05-02 17:24:00 +00:00
parent a807e2167e
commit 6a4d947d18
1 changed files with 1 additions and 1 deletions

2
git.py
View File

@ -15,7 +15,7 @@ def gitFormatContent(content: str) -> str:
"""
contentStr = content.replace('<br>', '\n').replace('<br \\>', '\n')
contentStr = contentStr.replace('<p>', '').replace('</p>', '\n')
contentSTr = contentStr.replace('&lt;', '<').replace('&gt;', '>')
contentStr = contentStr.replace('&lt;', '<').replace('&gt;', '>')
if 'From ' in contentStr:
contentStr = 'From ' + contentStr.split('From ', 1)[1]
return contentStr