diff --git a/content.py b/content.py index 535cf6986..ba675bd53 100644 --- a/content.py +++ b/content.py @@ -178,13 +178,14 @@ def html_replace_email_quote(content: str) -> str: new_content += '

' + line_str + '

' else: new_content += '

' + line_str + '

' + continue + + line_str = line_str.replace('>> ', '>
') + if line_str.startswith('>'): + line_str = line_str.replace('>', '
', 1) else: - line_str = line_str.replace('>> ', '>
') - if line_str.startswith('>'): - line_str = line_str.replace('>', '
', 1) - else: - line_str = line_str.replace('>', '
') - new_content += '

' + line_str + '

' + line_str = line_str.replace('>', '
') + new_content += '

' + line_str + '

' return _remove_quotes_within_quotes(new_content)