Skip to content

Commit

Permalink
BUG: Add newline at the end of HTML files
Browse files Browse the repository at this point in the history
Fixes #419
  • Loading branch information
kernc committed Jun 22, 2024
1 parent 3bf1cd8 commit c3fb554
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,8 @@ def html(self, minify=True, **kwargs) -> str:
if minify:
from pdoc.html_helpers import minify_html
html = minify_html(html)
if not html.endswith('\n'):
html = html + '\n'
return html

@property
Expand Down

0 comments on commit c3fb554

Please sign in to comment.