mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add a comment explaining part of visit_image.
This commit is contained in:
@@ -358,6 +358,9 @@ class HTMLTranslator(BaseTranslator):
|
||||
return
|
||||
|
||||
if node.has_key('scale'):
|
||||
# Try to figure out image height and width. Docutils does that too,
|
||||
# but it tries the final file name, which does not necessarily exist
|
||||
# yet at the time the HTML file is written.
|
||||
if Image and not (node.has_key('width')
|
||||
and node.has_key('height')):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user