Matthias Saou a7e451
diff -Naupr epydoc-3.0.1.orig/epydoc/docwriter/dotgraph.py epydoc-3.0.1/epydoc/docwriter/dotgraph.py
Matthias Saou a7e451
--- epydoc-3.0.1.orig/epydoc/docwriter/dotgraph.py	2008-01-28 19:15:33.000000000 +0100
Matthias Saou a7e451
+++ epydoc-3.0.1/epydoc/docwriter/dotgraph.py	2008-12-22 20:19:42.037246526 +0100
Matthias Saou a7e451
@@ -140,7 +140,7 @@ class DotGraph:
Matthias Saou a7e451
         # the cmapx with a single call to dot.  Otherwise, we need to
Matthias Saou a7e451
         # run dot twice.
Matthias Saou a7e451
         if get_dot_version() > [1,8,10]:
Matthias Saou a7e451
-            cmapx = self._run_dot('-Tgif', '-o%s' % image_file, '-Tcmapx')
Matthias Saou a7e451
+            cmapx = self._run_dot('-Tpng', '-o%s' % image_file, '-Tcmapx')
Matthias Saou a7e451
             if cmapx is None: return '' # failed to render
Matthias Saou a7e451
         else:
Matthias Saou a7e451
             if not self.write(image_file):
Matthias Saou a7e451
@@ -220,7 +220,7 @@ class DotGraph:
Matthias Saou a7e451
                 if url: attribs['href'] = url
Matthias Saou a7e451
                 else: del attribs['href']
Matthias Saou a7e451
                 
Matthias Saou a7e451
-    def write(self, filename, language='gif'):
Matthias Saou a7e451
+    def write(self, filename, language='png'):
Matthias Saou a7e451
         """
Matthias Saou a7e451
         Render the graph using the output format `language`, and write
Matthias Saou a7e451
         the result to `filename`.
Matthias Saou a7e451
@@ -234,7 +234,7 @@ class DotGraph:
Matthias Saou a7e451
             result = result.decode('utf-8')
Matthias Saou a7e451
         return (result is not None)
Matthias Saou a7e451
 
Matthias Saou a7e451
-    def render(self, language='gif'):
Matthias Saou a7e451
+    def render(self, language='png'):
Matthias Saou a7e451
         """
Matthias Saou a7e451
         Use the ``dot`` command to render this graph, using the output
Matthias Saou a7e451
         format `language`.  Return the result as a string, or ``None``
Matthias Saou a7e451
diff -Naupr epydoc-3.0.1.orig/epydoc/docwriter/html.py epydoc-3.0.1/epydoc/docwriter/html.py
Matthias Saou a7e451
--- epydoc-3.0.1.orig/epydoc/docwriter/html.py	2008-01-29 13:43:04.000000000 +0100
Matthias Saou a7e451
+++ epydoc-3.0.1/epydoc/docwriter/html.py	2008-12-22 20:19:56.195371915 +0100
Matthias Saou a7e451
@@ -1627,7 +1627,7 @@ class HTMLWriter:
Matthias Saou a7e451
     def render_graph(self, graph):
Matthias Saou a7e451
         if graph is None: return ''
Matthias Saou a7e451
         graph.caption = graph.title = None
Matthias Saou a7e451
-        image_url = '%s.gif' % graph.uid
Matthias Saou a7e451
+        image_url = '%s.png' % graph.uid
Matthias Saou a7e451
         image_file = os.path.join(self._directory, image_url)
Matthias Saou a7e451
         return graph.to_html(image_file, image_url)
Matthias Saou a7e451
     
Matthias Saou a7e451
diff -Naupr epydoc-3.0.1.orig/epydoc/markup/epytext.py epydoc-3.0.1/epydoc/markup/epytext.py
Matthias Saou a7e451
--- epydoc-3.0.1.orig/epydoc/markup/epytext.py	2007-09-26 06:45:35.000000000 +0200
Matthias Saou a7e451
+++ epydoc-3.0.1/epydoc/markup/epytext.py	2008-12-22 20:20:14.630371505 +0100
Matthias Saou a7e451
@@ -1878,7 +1878,7 @@ class ParsedEpytextDocstring(ParsedDocst
Matthias Saou a7e451
                                       docindex, context)
Matthias Saou a7e451
             if not graph: return ''
Matthias Saou a7e451
             # Write the graph.
Matthias Saou a7e451
-            image_url = '%s.gif' % graph.uid
Matthias Saou a7e451
+            image_url = '%s.png' % graph.uid
Matthias Saou a7e451
             image_file = os.path.join(directory, image_url)
Matthias Saou a7e451
             return graph.to_html(image_file, image_url)
Matthias Saou a7e451
         else:
Matthias Saou a7e451
diff -Naupr epydoc-3.0.1.orig/epydoc/markup/restructuredtext.py epydoc-3.0.1/epydoc/markup/restructuredtext.py
Matthias Saou a7e451
--- epydoc-3.0.1.orig/epydoc/markup/restructuredtext.py	2008-01-28 19:15:33.000000000 +0100
Matthias Saou a7e451
+++ epydoc-3.0.1/epydoc/markup/restructuredtext.py	2008-12-22 20:20:23.679309245 +0100
Matthias Saou a7e451
@@ -663,7 +663,7 @@ class _EpydocHTMLTranslator(HTMLTranslat
Matthias Saou a7e451
         if graph is None: return
Matthias Saou a7e451
         
Matthias Saou a7e451
         # Write the graph.
Matthias Saou a7e451
-        image_url = '%s.gif' % graph.uid
Matthias Saou a7e451
+        image_url = '%s.png' % graph.uid
Matthias Saou a7e451
         image_file = os.path.join(self._directory, image_url)
Matthias Saou a7e451
         self.body.append(graph.to_html(image_file, image_url))
Matthias Saou a7e451
         raise SkipNode()