Fix text writer can not handle visit_legend for figure directive contents.

This commit is contained in:
Takayuki Shimizukawa 2013-01-04 18:18:43 +09:00
parent 19a8c9e2e5
commit 263d5b376f
3 changed files with 11 additions and 0 deletions

View File

@ -5,6 +5,8 @@ Release 1.2 (in development)
come before matches in full text, and object results are better categorized.
Also implement a pluggable search scorer.
* Fix text writer can not handle visit_legend for figure directive contents.
* PR#72: #975: Fix gettext does not extract definition terms before docutils 0.10.0
* PR#25: In inheritance diagrams, the first line of the class docstring

View File

@ -294,6 +294,11 @@ class TextTranslator(nodes.NodeVisitor):
def visit_label(self, node):
raise nodes.SkipNode
def visit_legend(self, node):
pass
def depart_legend(self, node):
pass
# XXX: option list could use some better styling
def visit_option_list(self, node):

View File

@ -191,6 +191,10 @@ Figures
My caption of the figure
My description paragraph of the figure.
Description paragraph is wraped with legend node.
Version markup
--------------