diff --git a/src/lazydocs/generation.py b/src/lazydocs/generation.py index f23c3fc..5e9ca49 100755 --- a/src/lazydocs/generation.py +++ b/src/lazydocs/generation.py @@ -48,8 +48,8 @@ _CLASS_TEMPLATE = """ {section} class `{header}` {doc} -{variables} {init} +{variables} {handlers} {methods} """ @@ -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 property %s%s\n" + _SEPARATOR + + "\n%s property %s%s\n" % (subsection, property_name, comments) ) @@ -621,7 +622,8 @@ def class2md(self, cls: Any, depth: int = 2) -> str: handler_name = name handlers.append( - "\n%s handler %s\n" % (subsection, handler_name) + _SEPARATOR + + "\n%s handler %s\n" % (subsection, handler_name) ) methods = []