force new paragraph after a preformatted html block

This commit is contained in:
Ploum 2024-02-07 10:22:24 +01:00
parent 95b5c96534
commit 6ad59020a1
1 changed files with 1 additions and 1 deletions

View File

@ -1136,7 +1136,7 @@ class HtmlRenderer(AbstractRenderer):
elif element.name in ["pre"]: elif element.name in ["pre"]:
r.newparagraph() r.newparagraph()
r.add_block(element.text,theme="preformatted") r.add_block(element.text,theme="preformatted")
r.newparagraph() r.newparagraph(force=True)
elif element.name in ["li"]: elif element.name in ["li"]:
r.startindent("",sub=" ") r.startindent("",sub=" ")
for child in element.children: for child in element.children: