From 7c11bb7c6ef42710858f4777129af5789a6113c0 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 29 Nov 2010 02:59:15 +0000 Subject: [PATCH] layout/redactgraph: summary has distances on line below the edge label --- layout/redactgraph.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/layout/redactgraph.c b/layout/redactgraph.c index af1ef54..cdcff08 100644 --- a/layout/redactgraph.c +++ b/layout/redactgraph.c @@ -659,7 +659,8 @@ static void consistency(void) { /*---------- operations - output ----------*/ -static void printforneato_edgelabel(Edge *edge, const char *pname) { +static void printforneato_edgelabel(Edge *edge, const char *pname, + const char *distdelim) { const char *segname= edge->subseg->segment->segname; output(" [label=\""); if (pname) output("%s:", pname); @@ -670,7 +671,7 @@ static void printforneato_edgelabel(Edge *edge, const char *pname) { if (edge->subseg->movfeat) output("/%s%d",edge->subseg->movfeat,edge->movpos); } - output(":%.2f\"",edge->distance); + output("%s%.2f\"", distdelim, edge->distance); } static void printforneato(void) { @@ -693,7 +694,7 @@ static void printforneato(void) { "OI"[edge->ends[0].node->side], edge->ends[1].node->node->pname, "OI"[edge->ends[1].node->side]); - printforneato_edgelabel(edge, edge->pname); + printforneato_edgelabel(edge, edge->pname, ":"); output("];\n"); } } @@ -716,7 +717,7 @@ static void printforneatosumm(void) { output(" n%s -> n%s", edge->ends[0].node->node->pname, edge->ends[1].node->node->pname); - printforneato_edgelabel(edge, 0); + printforneato_edgelabel(edge, 0, "\\n"); output(", color=\"#999999\"," " labeldistance=0, port_label_distance=0];\n"); } -- 2.30.2