Merge pull request #89 from rtfd/fix-docstring-whitespace
Implement prepare_docstring filter that wraps Sphinx'spull/90/head
commit
b6ae837be9
@ -1,4 +1,4 @@
|
||||
.. {{ obj.type }}:: {{ obj.name }}
|
||||
|
||||
{{ obj.docstring|indent(3) }}
|
||||
{{ obj.docstring|prepare_docstring|indent(3) }}
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
{%- if obj.display %}
|
||||
|
||||
.. method:: {{ obj.name }}({{ obj.args[1:]|join(',') }})
|
||||
.. method:: {{ obj.short_name }}({{ obj.args[1:]|join(',') }})
|
||||
|
||||
{% if obj.docstring %}
|
||||
{{ obj.docstring|indent(3) }}
|
||||
{{ obj.docstring|prepare_docstring|indent(3) }}
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue