mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Do not emit warnings for images.
This commit is contained in:
parent
07a658e50c
commit
870309d038
@ -223,6 +223,13 @@ class ManualPageTranslator(BaseTranslator):
|
|||||||
def depart_production(self, node):
|
def depart_production(self, node):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# overwritten -- don't emit a warning for images
|
||||||
|
def visit_image(self, node):
|
||||||
|
if 'alt' in node.attributes:
|
||||||
|
self.body.append('[image: %s]\n' % node['alt'])
|
||||||
|
self.body.append('[image]\n')
|
||||||
|
raise nodes.SkipNode
|
||||||
|
|
||||||
# overwritten -- don't visit inner marked up nodes
|
# overwritten -- don't visit inner marked up nodes
|
||||||
def visit_reference(self, node):
|
def visit_reference(self, node):
|
||||||
self.body.append(self.defs['reference'][0])
|
self.body.append(self.defs['reference'][0])
|
||||||
|
Loading…
Reference in New Issue
Block a user