2012/10/26 Theophile Ranquet <[email protected]>: > The 6 tests on graphviz output still fail, this will also be fixed soon.
Done as follows: commit 32288c8cbd309b29dff45e81d78374a5eb9c006e Author: Theophile Ranquet <[email protected]> Date: Fri Oct 26 18:07:08 2012 +0000 graphs: fix spacing refactoring * src/print_graph.c (print_lhs, print_core): Here. diff --git a/src/print_graph.c b/src/print_graph.c index 5aa3cc6..7b2afdb 100644 --- a/src/print_graph.c +++ b/src/print_graph.c @@ -58,6 +58,7 @@ print_lhs (struct obstack *oout, rule *previous_rule, rule *r) obstack_sgrow (oout, escape (r->lhs->tag)); obstack_1grow (oout, ':'); } + obstack_1grow (oout, ' '); } static void @@ -98,7 +99,7 @@ print_core (struct obstack *oout, state *s) for (sp = rules[r].rhs; sp < sp1; sp++) obstack_printf (oout, "%s ", escape (symbols[*sp]->tag)); - obstack_sgrow (oout, " ."); + obstack_1grow (oout, '.'); for (/* Nothing */; *sp >= 0; ++sp) obstack_printf (oout, " %s", escape (symbols[*sp]->tag));
