mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
e34deb4b28
commit
db0969ac80
13
content.py
13
content.py
|
@ -178,13 +178,14 @@ def html_replace_email_quote(content: str) -> str:
|
||||||
new_content += '<p>' + line_str + '</blockquote></p>'
|
new_content += '<p>' + line_str + '</blockquote></p>'
|
||||||
else:
|
else:
|
||||||
new_content += '<p>' + line_str + '</p>'
|
new_content += '<p>' + line_str + '</p>'
|
||||||
|
continue
|
||||||
|
|
||||||
|
line_str = line_str.replace('>> ', '><blockquote>')
|
||||||
|
if line_str.startswith('>'):
|
||||||
|
line_str = line_str.replace('>', '<blockquote>', 1)
|
||||||
else:
|
else:
|
||||||
line_str = line_str.replace('>> ', '><blockquote>')
|
line_str = line_str.replace('>', '<br>')
|
||||||
if line_str.startswith('>'):
|
new_content += '<p>' + line_str + '</blockquote></p>'
|
||||||
line_str = line_str.replace('>', '<blockquote>', 1)
|
|
||||||
else:
|
|
||||||
line_str = line_str.replace('>', '<br>')
|
|
||||||
new_content += '<p>' + line_str + '</blockquote></p>'
|
|
||||||
return _remove_quotes_within_quotes(new_content)
|
return _remove_quotes_within_quotes(new_content)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue