Skip to content

Commit

Permalink
Add seperators for properties and handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmasuch committed Nov 25, 2020
1 parent 12ff4bd commit 2a38d50
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lazydocs/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
_CLASS_TEMPLATE = """
{section} <kbd>class</kbd> `{header}`
{doc}
{variables}
{init}
{variables}
{handlers}
{methods}
"""
Expand Down Expand Up @@ -604,7 +604,8 @@ def class2md(self, cls: Any, depth: int = 2) -> str:
if self.remove_package_prefix:
property_name = name
variables.append(
"\n%s <kbd>property</kbd> %s%s\n"
_SEPARATOR
+ "\n%s <kbd>property</kbd> %s%s\n"
% (subsection, property_name, comments)
)

Expand All @@ -621,7 +622,8 @@ def class2md(self, cls: Any, depth: int = 2) -> str:
handler_name = name

handlers.append(
"\n%s <kbd>handler</kbd> %s\n" % (subsection, handler_name)
_SEPARATOR
+ "\n%s <kbd>handler</kbd> %s\n" % (subsection, handler_name)
)

methods = []
Expand Down

0 comments on commit 2a38d50

Please sign in to comment.