]> granicus.if.org Git - graphviz/commitdiff
Fix bug 615 - for plain output, if label is html, use original attribute
authorerg <devnull@localhost>
Mon, 24 Jan 2005 20:20:21 +0000 (20:20 +0000)
committererg <devnull@localhost>
Mon, 24 Jan 2005 20:20:21 +0000 (20:20 +0000)
since we may have altered or strduped the text internally, the latter
causing the html bit to be lost.

lib/common/output.c

index 75702c928e0cad916ea244f6c71ca3448a971f6a..a7b3df6b419893d152d9b6e85c098fd95a15c8c3 100644 (file)
@@ -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