Re: [graphviz-interest] Flatten Formatting sfdp output for dot file
"Emden R. Gansner" <[email protected]> Wed, 22 Jan 2014 16:13:42 -0500
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
> Is that possible to specify in parameter to have a flattened format
> like: N0 [color=blue, height=0.041667, label="",
> pos="90.141,91.856", width=0.041667];
Sorry, no. But something like
gsed 's/\t\t*/ /g' 09_simple.gv | awk -ffl.awk
should usually work, where fl.awk contains
{
if ($0 ~ /\[/) {in_attr=1; printf("%s",$0);}
else if ($0 ~ /\]/) {in_attr=0; printf("%s\n",$0);}
else if (in_attr) printf("%s",$0);
else print $0;
}
Emden
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest