dot2pic: Be less picky parsing "dot" output.
authorBen Pfaff <blp@nicira.com>
Wed, 1 Dec 2010 19:03:12 +0000 (11:03 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 1 Dec 2010 19:03:12 +0000 (11:03 -0800)
commit73ffb8e8c0c8dd5a07195827ca97f641faccc49f
treec477194228c3a23ffb47f549c105a0af447433e5
parentcc01d0bb79103a01aa0afc3484249fd518b877ea
dot2pic: Be less picky parsing "dot" output.

Some versions of "dot" put two spaces after the "node" keyword instead of
one, which didn't match the regular expression used in dot2pic.  This
commit changes dot2pic not to care about the number of spaces in "node" and
"graph" lines.  (The "graph" lines weren't actually a problem but I don't
see a reason to be picky about them either.)

Different versions of "dot" still produce different output for the same
input, but I don't see how to avoid that.

Reported-by: Justin Pettit <jpettit@nicira.com>
ovsdb/dot2pic