mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-17 21:25:35 +00:00
Fixed incorrect formatting of functions and methods
This commit is contained in:
parent
6d39780ae4
commit
9d45eed4d0
@ -1,6 +1,7 @@
|
|||||||
{% if obj.display %}
|
{% if obj.display %}
|
||||||
.. function:: {{ obj.short_name }}({{ obj.args }}){% if obj.return_annotation is not none %} -> {{ obj.return_annotation }}{% endif %}
|
.. function:: {{ obj.short_name }}({{ obj.args }}){% if obj.return_annotation is not none %} -> {{ obj.return_annotation }}{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if obj.docstring %}
|
{% if obj.docstring %}
|
||||||
{{ obj.docstring|prepare_docstring|indent(3) }}
|
{{ obj.docstring|prepare_docstring|indent(3) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user