From 4f6551bfd494743fb52ceaeeef99dc391d8ef035 Mon Sep 17 00:00:00 2001 From: erg Date: Mon, 24 Jan 2005 20:20:21 +0000 Subject: [PATCH] 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. --- lib/common/output.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.40.0