mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Cleaner fix for double trailing whitespace apidoc
This commit is contained in:
parent
72abb19740
commit
73bbe90ee0
@ -35,16 +35,15 @@ Submodules
|
|||||||
----------
|
----------
|
||||||
{% if separatemodules %}
|
{% if separatemodules %}
|
||||||
{{ toctree(submodules) }}
|
{{ toctree(submodules) }}
|
||||||
{% endif %}
|
{% else %}
|
||||||
{%- if not separatemodules %}
|
|
||||||
{%- for submodule in submodules %}
|
{%- for submodule in submodules %}
|
||||||
{% if show_headings %}
|
{% if show_headings %}
|
||||||
{{- [submodule, "module"] | join(" ") | e | heading(2) }}
|
{{- [submodule, "module"] | join(" ") | e | heading(2) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ automodule(submodule, automodule_options) }}
|
{{ automodule(submodule, automodule_options) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{%- endif -%}
|
{%- endif %}
|
||||||
{% endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- if not modulefirst and not is_namespace %}
|
{%- if not modulefirst and not is_namespace %}
|
||||||
Module contents
|
Module contents
|
||||||
|
@ -121,7 +121,6 @@ def test_pep_0420_enabled_separate(make_app, apidoc):
|
|||||||
|
|
||||||
with open(outdir / 'a.b.c.rst') as f:
|
with open(outdir / 'a.b.c.rst') as f:
|
||||||
rst = f.read()
|
rst = f.read()
|
||||||
|
|
||||||
assert ".. toctree::\n :maxdepth: 4\n\n a.b.c.d\n" in rst
|
assert ".. toctree::\n :maxdepth: 4\n\n a.b.c.d\n" in rst
|
||||||
|
|
||||||
with open(outdir / 'a.b.e.rst') as f:
|
with open(outdir / 'a.b.e.rst') as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user