Number: 28
Title: PostScript output with bad %% marks
Submitter: Petr Prikryl
Date: Tue Jun 12 06:00:03 2001
Subsys: Dot
Version: 1.7.6 beta 1
System: x86-Other-Windows NT 4.0
Severity: minor
Problem:
When the PostScript output is produced by dot 1.7.6 beta 1 for Windows (on Windows NT 4.0), the Document Structuring Conventions are not followed (at least AFPL Ghostscript/GSview 4.0 complains like that:

DCS warning at line 134 %%EndProlog

%%BeginResource: / %%EndResource The number of Begin and End comments do not match.

and later

DCS warning at line 151 %%EndSetup

%%BeginResource: / %%EndResource The number of Begin and End comments do not match.

One can also observe that the box-top-line left point is higher than the right one. I guessed that when reporting the "gif cut top line"

The output was produced this way

dot -Tps a.dot -o a.ps

The content of the a.dot follows
Input:

digraph inheritance
{
  rankdir=LR;
  Node145 [shape="box",label="CDirectorManagerImpl",
           fontsize=10,height=0.23];
}
Output file: b28.ps
Comments:
Thanks,

Petr

P.S. I am reporting only the second bug here but I really like your bugform.html.
Fix:
I think I've fixed the problem with %%EndResouce being in the wrong place. The various %%Begin/%%Ends were not properly nested in dotneato/common/ps.txt, which I've changed, but

The gs version 5.50 that I'm using doesn't report problems either way.
Owner: ellson
Status: Fixed