show both label and title for aggv

fixes #9185
This commit is contained in:
Lowly Worm 2018-01-13 00:14:07 -08:00
parent 2ca2f9c5d2
commit 7dc638c5d1

View File

@ -5392,11 +5392,12 @@ static void agraph_print_node_dot(RANode *n, void *user) {
char *label = strdup (n->body);
//label = r_str_replace (label, "\n", "\\l", 1);
if (!label || !*label) {
free (label);
label = strdup (n->title);
r_cons_printf ("\"%s\" [URL=\"%s\", color=\"lightgray\", label=\"%s\"]\n",
n->title, n->title, n->title);
} else {
r_cons_printf ("\"%s\" [URL=\"%s\", color=\"lightgray\", label=\"%s\\n%s\"]\n",
n->title, n->title, n->title, label);
}
r_cons_printf ("\"%s\" [URL=\"%s\", color=\"lightgray\", label=\"%s\"]\n",
n->title, n->title, label);
free (label);
}