Commits

Takeshi Komiya committed 533e1b1

Fixed #26: Set candidates field to nodes.image node

Comments (0)

Files changed (5)

actdiag/sphinxcontrib/actdiag.py

             image.draw()
             image.save()
 
-        image = nodes.image(uri=outfn)
+        candidates = {'image/png': outfn}
+        image = nodes.image(uri=outfn, candidates=candidates)
         node.parent.replace(node, image)
 
 

blockdiag/sphinxcontrib/blockdiag.py

             image.draw()
             image.save()
 
-        image = nodes.image(uri=outfn)
+        candidates = {'image/png': outfn}
+        image = nodes.image(uri=outfn, candidates=candidates)
         node.parent.replace(node, image)
 
 

nwdiag/sphinxcontrib/nwdiag.py

             image.draw()
             image.save()
 
-        image = nodes.image(uri=outfn)
+        candidates = {'image/png': outfn}
+        image = nodes.image(uri=outfn, candidates=candidates)
         node.parent.replace(node, image)
 
 

nwdiag/sphinxcontrib/rackdiag.py

             image.draw()
             image.save()
 
-        image = nodes.image(uri=outfn)
+        candidates = {'image/png': outfn}
+        image = nodes.image(uri=outfn, candidates=candidates)
         node.parent.replace(node, image)
 
 

seqdiag/sphinxcontrib/seqdiag.py

             image.draw()
             image.save()
 
-        image = nodes.image(uri=outfn)
+        candidates = {'image/png': outfn}
+        image = nodes.image(uri=outfn, candidates=candidates)
         node.parent.replace(node, image)