From: ellson Date: Wed, 12 Jan 2005 12:12:17 +0000 (+0000) Subject: (Applying same change to graphviz2) X-Git-Tag: LAST_LIBGRAPH~32^2~8105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbd9246af02ba5d20aae37957a80858beab86d52;p=graphviz (Applying same change to graphviz2) For HTML table labels, replace label string with place holder after analysis. The text is only used for the title/alt fields of image maps and svg output and using the HTML string doesn't really help. See bug 600. --- diff --git a/lib/common/htmltable.c b/lib/common/htmltable.c index 73b136f96..1c4db36e5 100644 --- a/lib/common/htmltable.c +++ b/lib/common/htmltable.c @@ -1470,5 +1470,14 @@ int make_html_label(textlabel_t * lp, void *obj) lp->dimen.y = box.UR.y - box.LL.y; } lp->u.html = lbl; + + /* If the label is a table, replace label text because this may + * be used for the title and alt fields in image maps. + */ + if (lbl->kind == HTML_TBL) { + free (lp->text); + lp->text = strdup ("
"); + } + return rv; }