graphs: style: use left justification for states
authorTheophile Ranquet <ranquet@lrde.epita.fr>
Mon, 8 Oct 2012 15:53:44 +0000 (15:53 +0000)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 11 Oct 2012 13:46:43 +0000 (15:46 +0200)
commita13121f75994966dfbb7bed4de31dd7bb2516350
treee96b5952ef399231698796dd6a2f7340f5c59460
parent2be37f19fe2165fcfd8752a30b55308a5bdb9b84
graphs: style: use left justification for states

The label text of nodes is centered "by default" (by the use of '\n' as
a line feed). This gives bad readability to the grammar rules shown in
state nodes, a left justification is much nicer. This is done by using '\l'
as the line feed.

In order to allow \l in the DOT file, changes to the quoting system seem
necessary.

* src/print_graph.c (print_core): Escape tokens here, instead of...
* src/graphviz.c (output_node): Here...
(escape): Using this, new.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
src/graphviz.c
src/graphviz.h
src/print_graph.c