#540312 Dotty generated PS file are broken

Package:
graphviz
Source:
graphviz
Description:
rich set of graph drawing tools
Submitter:
Date:
2019-09-24 13:57:03 UTC
Severity:
normal
#540312#5
Date:
2009-08-07 06:15:27 UTC
From:
To:
Take a simlpe dot file, for instance :

$ cat > simple.dot <<EOF
strict digraph "test" {
	"titi" -> "toto"
}
EOF

then run dotty :

$ dotty simple.dot

then right click, select "print graph", then "file", then
a filename and any combination of format and orientation.
Then go check your PS file with for instance gv.

GV will display the graph then blank it immediatly.

When printing, the page is blank.
One converted to pdf, xpdf on it behaves like gv on
the postscript (display then erase).

The easy workaround is to use dot with -Tps instead.
Notice that the outputed PS file is completely different from
the one generated from dotty.

I suggest removing the print graph option alltogether from dotty :-)

#540312#10
Date:
2019-09-24 13:47:42 UTC
From:
To:
Dear Maintainer,

the problem is still there with 2.38.0-17.

Another workaround is to remove the last line with only `FI` on it
in the .ps output.


Here is a diff for the example:
--- out.ps.org 2019-09-24 15:40:18.580577716 +0200
+++ out2.ps     2019-09-24 15:43:30.557247527 +0200
@@ -112,7 +112,6 @@
 1546 3120 lineto
 1546 29 lineto
 28 29 lineto
-FI
 0.996094 0.996094 0.992188 CL
 DO 28 29 moveto
 28 3120 lineto

Regards,
Bernhard