Add a comment explaining part of visit_image.

This commit is contained in:
Georg Brandl
2012-03-10 21:29:03 +01:00
parent 729565b7a9
commit 6afd9ce2d6

View File

@@ -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: