su9nil14 / canviz

Automatically exported from code.google.com/p/canviz
0 stars 0 forks source link

Support arbitrary whitespace and commas between attributes #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Some time in the Graphviz 2.21.x development cycle, the xdot output changed 
subtly. There is now a space before each comma in the attribute lists of nodes 
and edges, and Canviz isn't robust enough 
to handle that. Canviz should match the regex [\s,]+ in between attributes 
instead of ,\s* as currently.

Input:

digraph G { a }

Output with Graphviz 2.20.2:

digraph G {
    node [label="\N"];
    graph [bb="0,0,54,36",
        _draw_="c 5 -white C 5 -white P 4 0 0 0 36 54 36 54 0 ",
        xdotversion="1.2"];
    a [pos="27,18", width="0.75", height="0.50", _draw_="c 5 -black e 27 18 27 18 ", _ldraw_="F 14.000000 11 -Times-Roman c 5 -black T 27 10 0 5 1 -a "];
}

Output with Graphviz 2.21.20080918.0445:

digraph G {
    node [label="\N"];
    graph [bb="0,0,54,36",
        _draw_="c 5 -white C 5 -white P 4 0 -1 0 36 55 36 55 -1 ",
        xdotversion="1.2"];
    a [pos="27,18" , width="0.75" , height="0.5" , _draw_="c 5 -black e 27 18 27 18 " , _ldraw_="F 14.000000 11 -Times-Roman c 5 -black T 27 10 0 5 1 -a " ];
}

Original issue reported on code.google.com by ryandesi...@gmail.com on 21 Sep 2008 at 6:14

GoogleCodeExporter commented 8 years ago
Fixed in r86.

Original comment by ryandesi...@gmail.com on 2 Oct 2008 at 8:37

GoogleCodeExporter commented 8 years ago
The file rgbspaces.gv in issue #4 can be used to test this issue as well.

Original comment by ryandesi...@gmail.com on 3 Oct 2008 at 12:36