summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-03-01 09:27:13 +0100
committerGeorg Brandl <georg@python.org>2014-03-01 09:27:13 +0100
commit1390388baaccd4b2a19a070a08d0af205e081f46 (patch)
treeb1027fb0110bc8b0f7c1b1e8eeea929f891db844
parent3149f3618979545ed29487e54dcd8b2614845b50 (diff)
downloadsphinx-git-1390388baaccd4b2a19a070a08d0af205e081f46.tar.gz
Closes #1370: Ignore "toctree" nodes in text writer, instead of raising.
-rw-r--r--CHANGES1
-rw-r--r--sphinx/writers/text.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 232ecad01..abe83d28f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -19,6 +19,7 @@ Bugs fixed
time in sphinx-quickstart.
* #1386: Fix bug preventing more than one theme being added by the entry point
mechanism.
+* #1370: Ignore "toctree" nodes in text writer, instead of raising.
Documentation
-------------
diff --git a/sphinx/writers/text.py b/sphinx/writers/text.py
index 44d7f90b3..42ba05077 100644
--- a/sphinx/writers/text.py
+++ b/sphinx/writers/text.py
@@ -729,6 +729,9 @@ class TextTranslator(nodes.NodeVisitor):
def visit_index(self, node):
raise nodes.SkipNode
+ def visit_toctree(self, node):
+ raise nodes.SkipNode
+
def visit_substitution_definition(self, node):
raise nodes.SkipNode