From: erg Date: Mon, 24 Jan 2005 20:20:21 +0000 (+0000) Subject: Fix bug 615 - for plain output, if label is html, use original attribute X-Git-Tag: LAST_LIBGRAPH~32^2~8001 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f6551bfd494743fb52ceaeeef99dc391d8ef035;p=graphviz Fix bug 615 - for plain output, if label is html, use original attribute since we may have altered or strduped the text internally, the latter causing the html bit to be lost. --- diff --git a/lib/common/output.c b/lib/common/output.c index 75702c928..a7b3df6b4 100644 --- a/lib/common/output.c +++ b/lib/common/output.c @@ -515,7 +515,10 @@ void _write_plain(GVC_t * gvc, FILE * f, boolean extend) continue; fprintf(f, "node %s ", canonical(n->name)); printptf(f, ND_coord_i(n)); - lbl = ND_label(n)->text; + if (ND_label(n)->html) /* if html, get original text */ + lbl = agxget(n, N_label->index); + else + lbl = ND_label(n)->text; if (lbl) lbl = canonical(lbl); else