Skip to content

Commit 94171e5

Browse files
committed
BUG: Add newline at the end of HTML files
Fixes #419
1 parent 109081a commit 94171e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pdoc/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,8 @@ def html(self, minify=True, **kwargs) -> str:
896896
if minify:
897897
from pdoc.html_helpers import minify_html
898898
html = minify_html(html)
899+
if not html.endswith('\n'):
900+
html = html + '\n'
899901
return html
900902

901903
@property

0 commit comments

Comments
 (0)