Fewer newlines

main
Bob Mottram 2025-12-07 17:59:44 +00:00
parent 1136dc6fb3
commit 3afaaa51ae
1 changed files with 1 additions and 1 deletions

View File

@ -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