2007/4/26, Debian Bug Tracking System <[EMAIL PROTECTED]>:
This is an automatic notification regarding your Bug report
#413241: graphviz: Hex colors show up as grey,
which was filed against the graphviz package.

It has been closed by Cyril Brulebois <[EMAIL PROTECTED]>.

Their explanation is attached below.  If this explanation is
unsatisfactory and you have not received a better one in a separate
message then please contact Cyril Brulebois <[EMAIL PROTECTED]> by replying
to this email.

Debian bug tracking system administrator
(administrator, Debian Bugs database)



---------- Doorgestuurd bericht ----------
From: Cyril Brulebois <[EMAIL PROTECTED]>
To: Ron <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Date: Thu, 26 Apr 2007 15:59:19 +0200
Subject: Re: Bug#413241: graphviz: Hex colors show up as grey
Version: 2.8-2.6

Ron <[EMAIL PROTECTED]> (03/03/2007):
> This input file for dot started as:
> dot -Tpng -ooutput.png produces _grey_ nodes instead of red ones. The
> nodes with fillcolor = red do show up as red nodes. The code #ff0000
> should also produce red nodes.

According to[1], the color element should be passed an ID, which
definition follows:
 * Any string of alphabetic characters, underscores or digits, not
   beginning with a digit;
 * a number [-]?(.[0-9]+ | [0-9]+(.[0-9]*)? );
 * any double-quoted string ("...") possibly containing escaped quotes
   (\");
 * an HTML string (<...>).

 1. http://www.graphviz.org/doc/info/lang.html


BTW, the error message is quite clear:
| $ dot -Tpng grey.dot -o grey.png
| Error: grey.dot:4: syntax error near line 4
| context: 4[style=filled, >>>  fillcolor=# <<< ff0000];

You just have to escape the string containing a '#', using " characters,
and it just works.

Cheers,

--
Cyril Brulebois
Indeed, I think I just misinterpreted this from the manpage: or a
"#rrggbb" (red,  green, blue, 2 hex characters each) value at that
time. The reason I reported this bug is that I never _saw_ that
message, since I create my graphs with a program and the program
doesn't check for stderr of graphviz. After the image is created I use
a viewer to see it automatically, hence from my point of view
everything was fine, except with Graphviz.

I consider it a bug for a program to continue in the case of an error.
It should abort when given nonsensical input. Don't you agree with
that in general?

Regards, Ron


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to