diff options
author | Georg Brandl <georg@python.org> | 2014-03-01 09:27:13 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-03-01 09:27:13 +0100 |
commit | 1390388baaccd4b2a19a070a08d0af205e081f46 (patch) | |
tree | b1027fb0110bc8b0f7c1b1e8eeea929f891db844 | |
parent | 3149f3618979545ed29487e54dcd8b2614845b50 (diff) | |
download | sphinx-git-1390388baaccd4b2a19a070a08d0af205e081f46.tar.gz |
Closes #1370: Ignore "toctree" nodes in text writer, instead of raising.
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | sphinx/writers/text.py | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -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 |