Skip to content

Commit

Permalink
build(docs): separate top-level elements by newline again
Browse files Browse the repository at this point in the history
I.e. make the HTML output approximately the same as years ago.
Addition of the '\n' character copied from the HtmlRenderer.
  • Loading branch information
pbodnar committed Oct 13, 2024
1 parent a40cd2f commit 872491d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def render_document(self, token, name="README.md"):
if v == filename:
self.footnotes[k] = new_link
subtitle = ' | {}'.format('version ' + __version__ if name == 'README.md' else name.split('.')[0].lower())
return pattern.format(METADATA.format(subtitle), self.render_inner(token))
body = '\n'.join([self.render(child) for child in token.children])
return pattern.format(METADATA.format(subtitle), body)

def _replace_link(self, token):
token.target = getattr(self, 'files', {}).get(token.target, token.target)
Expand Down

0 comments on commit 872491d

Please sign in to comment.