mirror of https://gitlab.com/bashrc2/epicyon
Fewer newlines
parent
1136dc6fb3
commit
3afaaa51ae
2
blog.py
2
blog.py
|
|
@ -226,7 +226,7 @@ def html_blog_post_markdown(content: str) -> str:
|
|||
section.replace('<', '</' + html_header + '><', 1)
|
||||
elif '\n' in section:
|
||||
section = '><' + html_header + '>' + \
|
||||
section.replace('\n', '</' + html_header + '>\n', 1)
|
||||
section.replace('\n', '</' + html_header + '>', 1)
|
||||
else:
|
||||
section = markdown_text + section
|
||||
new_content2 += section
|
||||
|
|
|
|||
Loading…
Reference in New Issue