Skip to content

Commit c3fb554

Browse files
committedJun 22, 2024··
BUG: Add newline at the end of HTML files
Fixes #419
1 parent 3bf1cd8 commit c3fb554

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎pdoc/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,8 @@ def html(self, minify=True, **kwargs) -> str:
888888
if minify:
889889
from pdoc.html_helpers import minify_html
890890
html = minify_html(html)
891+
if not html.endswith('\n'):
892+
html = html + '\n'
891893
return html
892894

893895
@property

0 commit comments

Comments
 (0)
Please sign in to comment.