Commits

Georg Brandl committed ee2d5b1

Add a comment explaining part of visit_image.

  • Participants
  • Parent commits 788fe59
  • Branches stable

Comments (0)

Files changed (1)

File sphinx/writers/html.py

             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: