diff options
author | AleksaC <aleksacukovic1@gmail.com> | 2020-07-11 13:32:37 +0300 |
---|---|---|
committer | AleksaC <aleksacukovic1@gmail.com> | 2020-07-11 13:32:37 +0300 |
commit | 73bbe90ee044ad3c0da8d1f63a1377531bdb4972 (patch) | |
tree | dabf4c08ebba230f087de4660c28076f287eb533 /sphinx/templates | |
parent | 72abb19740584bb273a38e4f3ed311b19327f87a (diff) |
Cleaner fix for double trailing whitespace apidoc
Diffstat (limited to 'sphinx/templates')
-rw-r--r-- | sphinx/templates/apidoc/package.rst_t | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sphinx/templates/apidoc/package.rst_t b/sphinx/templates/apidoc/package.rst_t index e599d71e4..b7380e8a0 100644 --- a/sphinx/templates/apidoc/package.rst_t +++ b/sphinx/templates/apidoc/package.rst_t @@ -35,16 +35,15 @@ Submodules ---------- {% if separatemodules %} {{ toctree(submodules) }} -{% endif %} -{%- if not separatemodules %} +{% else %} {%- for submodule in submodules %} {% if show_headings %} {{- [submodule, "module"] | join(" ") | e | heading(2) }} {% endif %} {{ automodule(submodule, automodule_options) }} {% endfor %} -{%- endif -%} -{% endif %} +{%- endif %} +{%- endif %} {%- if not modulefirst and not is_namespace %} Module contents |