mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
0873d60c0d
commit
e34deb4b28
17
content.py
17
content.py
|
@ -124,14 +124,15 @@ def _remove_quotes_within_quotes(content: str) -> str:
|
||||||
quoted_str = content.split('<blockquote>', ctr)[1]
|
quoted_str = content.split('<blockquote>', ctr)[1]
|
||||||
if '</blockquote>' not in quoted_str:
|
if '</blockquote>' not in quoted_str:
|
||||||
found = False
|
found = False
|
||||||
else:
|
continue
|
||||||
end_str = quoted_str.split('</blockquote>')[1]
|
|
||||||
quoted_str = quoted_str.split('</blockquote>')[0]
|
end_str = quoted_str.split('</blockquote>')[1]
|
||||||
if '<blockquote>' not in end_str:
|
quoted_str = quoted_str.split('</blockquote>')[0]
|
||||||
found = False
|
if '<blockquote>' not in end_str:
|
||||||
if '<blockquote>' in quoted_str:
|
found = False
|
||||||
quoted_str = quoted_str.replace('<blockquote>', '')
|
if '<blockquote>' in quoted_str:
|
||||||
content = prefix + quoted_str + '</blockquote>' + end_str
|
quoted_str = quoted_str.replace('<blockquote>', '')
|
||||||
|
content = prefix + quoted_str + '</blockquote>' + end_str
|
||||||
ctr += 1
|
ctr += 1
|
||||||
return content
|
return content
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue