From db0969ac800a6bbf0da932d4290ed223359c44e5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 6 Nov 2024 10:21:47 +0000 Subject: [PATCH] Less indentation --- content.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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)