Clean up python templates

This commit is contained in:
Eric Holscher 2015-04-23 15:37:02 -07:00
parent 3c7a80c263
commit d1dc81b8ba
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
.. class:: {{ obj.name }}{% if obj.args %}({{ obj.args|join(',') }}){% endif %} .. py:class:: {{ obj.name }}{% if obj.args %}({{ obj.args|join(',') }}){% endif %}
{% if obj.docstring %} {% if obj.docstring %}

View File

@ -25,7 +25,7 @@
{% endif %} {% endif %}
.. module:: {{ obj.name }} .. py:module:: {{ obj.name }}
@ -39,7 +39,7 @@
{%- for obj_item in obj.item_map.get(item_type, []) %} {%- for obj_item in obj.item_map.get(item_type, []) %}
{% macro render() %}{{ obj_item.render() }}{% endmacro %} {% macro render() %}{{ obj_item.render() }}{% endmacro %}
{{ render()|indent(4) }} {{ render()|indent(0) }}
{%- endfor %} {%- endfor %}
{%- endmacro %} {%- endmacro %}