mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix text writer can not handle visit_legend for figure directive contents.
This commit is contained in:
parent
19a8c9e2e5
commit
263d5b376f
2
CHANGES
2
CHANGES
@ -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
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
--------------
|
||||
|
Loading…
Reference in New Issue
Block a user