diff --git a/sphinx/environment.py b/sphinx/environment.py index 1b9042691..5b166812a 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -1374,7 +1374,7 @@ class BuildEnvironment: 'iscurrent' not in subnode.parent): subnode.parent.remove(subnode) else: - # recurse on visible children + # recurse on visible children _toctree_prune(subnode, depth+1, maxdepth) def _toctree_add_classes(node, depth): diff --git a/sphinx/themes/agogo/layout.html b/sphinx/themes/agogo/layout.html index 7f3a24870..fde19dbc7 100644 --- a/sphinx/themes/agogo/layout.html +++ b/sphinx/themes/agogo/layout.html @@ -8,7 +8,7 @@ :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} -{% extends "basic/layout.html" %} +{%- extends "basic/layout.html" %} {% block header %}