re-apply fix for bug #2121 - graphviz graphs generated off the edge of the page

svn: r12249
This commit is contained in:
Stéphane Charette 2009-03-08 19:58:49 +00:00
parent 5d84e3b1e2
commit c6633a559e

View File

@ -206,8 +206,8 @@ class GVDocBase(BaseDoc.BaseDoc, BaseDoc.GVDoc):
self.write( ' mclimit="99";\n' )
self.write( ' nodesep="%.2f";\n' % self.nodesep )
self.write( ' outputorder="edgesfirst";\n' )
# if self.hpages == 1 and self.vpages == 1:
# self.write( '#' ) # comment out "page=" if the graph is on 1 page
if self.hpages == 1 and self.vpages == 1:
self.write( '#' ) # comment out "page=" if the graph is on 1 page (bug #2121)
self.write( ' page="%3.2f,%3.2f";\n' % (pwidth, pheight) )
self.write( ' pagedir="%s";\n' % self.pagedir )
self.write( ' rankdir="%s";\n' % self.rankdir )