]> granicus.if.org Git - graphviz/commitdiff
Attempt to fix #1328 with a separate xml_url_string() for hrefs
authorellson <devnull@localhost>
Wed, 2 Apr 2008 22:38:24 +0000 (22:38 +0000)
committerellson <devnull@localhost>
Wed, 2 Apr 2008 22:38:24 +0000 (22:38 +0000)
plugin/core/gvrender_core_svg.c

index d62d63591cda74cbf4bc0f28a7cdb3cfb7e0cf6e..7c57ff67a72b3844b15f93753586b4f9cc592737 100644 (file)
@@ -44,6 +44,7 @@
 typedef enum { FORMAT_SVG, FORMAT_SVGZ, } format_type;
 
 extern char *xml_string(char *str);
+extern char *xml_url_string(char *str);
 
 /* SVG dash array */
 static char *sdarray = "5,2";
@@ -282,7 +283,7 @@ svg_begin_anchor(GVJ_t * job, char *href, char *tooltip, char *target)
 {
     gvdevice_fputs(job, "<a");
     if (href && href[0])
-       gvdevice_printf(job, " xlink:href=\"%s\"", xml_string(href));
+       gvdevice_printf(job, " xlink:href=\"%s\"", xml_url_string(href));
     if (tooltip && tooltip[0])
        gvdevice_printf(job, " xlink:title=\"%s\"", xml_string(tooltip));
     if (target && target[0])