mirror of https://gitlab.com/bashrc2/epicyon
Distill line breaks
parent
9f30a52368
commit
713c6db446
|
@ -2222,7 +2222,12 @@ def format_mixed_right_to_left(content: str,
|
||||||
result += text_html
|
result += text_html
|
||||||
if not changed:
|
if not changed:
|
||||||
result = ''
|
result = ''
|
||||||
paragraphs = content.split('<br><br>')
|
prev_distilled = ''
|
||||||
|
distilled = content
|
||||||
|
while prev_distilled != distilled:
|
||||||
|
prev_distilled = distilled
|
||||||
|
distilled = distilled.replace('<br><br><br>', '<br><br>')
|
||||||
|
paragraphs = distilled.split('<br><br>')
|
||||||
ctr = 0
|
ctr = 0
|
||||||
for text_html in paragraphs:
|
for text_html in paragraphs:
|
||||||
ctr += 1
|
ctr += 1
|
||||||
|
|
Loading…
Reference in New Issue