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 | 78fc8d4b801a493e4980552106dd0dc3d16f75cf (patch) | |
| tree | b1027fb0110bc8b0f7c1b1e8eeea929f891db844 | |
| parent | 812dcdfe216a8580492d21ed81a88475a9cfd3dd (diff) | |
| download | sphinx-78fc8d4b801a493e4980552106dd0dc3d16f75cf.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 44d7f90b..42ba0507 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 |
