From: ellson <devnull@localhost> Date: Thu, 2 Mar 2006 18:05:55 +0000 (+0000) Subject: fix bug#896 - need html escaping of graph name when used in -Tcmapx X-Git-Tag: LAST_LIBGRAPH~32^2~6772 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=893997bfa2b4f0eb5d8215c1ee0831025e79f1a1;p=graphviz fix bug#896 - need html escaping of graph name when used in -Tcmapx --- diff --git a/lib/common/mapgen.c b/lib/common/mapgen.c index 51365b873..9532e38df 100644 --- a/lib/common/mapgen.c +++ b/lib/common/mapgen.c @@ -336,13 +336,13 @@ static void map_begin_page(graph_t * g, point page, double scale, int rot, point offset) { - char *url; + char *url, *name; Rot = rot; + name = xml_string(g->name); if (Output_lang == CMAPX) { - fprintf(Output_file, "<map id=\"%s\" name=\"%s\">\n", g->name, - g->name); + fprintf(Output_file, "<map id=\"%s\" name=\"%s\">\n", name, name); } Root_Graph = g; Default_URL = NULL;