From 9d45eed4d0c44031fdbe81b7dcf660d2dbfe82ef Mon Sep 17 00:00:00 2001 From: Ashley Whetter Date: Sun, 23 Jun 2019 11:42:53 -0700 Subject: [PATCH] Fixed incorrect formatting of functions and methods --- autoapi/templates/python/function.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/autoapi/templates/python/function.rst b/autoapi/templates/python/function.rst index fbfefa9..bc51e16 100644 --- a/autoapi/templates/python/function.rst +++ b/autoapi/templates/python/function.rst @@ -1,6 +1,7 @@ {% if obj.display %} .. function:: {{ obj.short_name }}({{ obj.args }}){% if obj.return_annotation is not none %} -> {{ obj.return_annotation }}{% endif %} + {% if obj.docstring %} {{ obj.docstring|prepare_docstring|indent(3) }} {% endif %}