(Applying same change to graphviz2)
authorellson <devnull@localhost>
Wed, 12 Jan 2005 12:12:17 +0000 (12:12 +0000)
committerellson <devnull@localhost>
Wed, 12 Jan 2005 12:12:17 +0000 (12:12 +0000)
For HTML table labels, replace label string with place holder <TABLE>
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.

lib/common/htmltable.c

index 73b136f960364d2250f240f812298b6248b18862..1c4db36e5ed2be1715e28b4960c037294a79a202 100644 (file)
@@ -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 ("<TABLE>");
+    }
+
     return rv;
 }