mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-15 01:42:12 -05:00
Add a comment explaining part of visit_image.
This commit is contained in:
1 parent
729565b7a9
commit
6afd9ce2d6
1 file changed
+3
@@ -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