}
if (target && target[0]) {
gvputs(job, " target=\"");
- gvputs(job, xml_string(target));
+ gvputs_xml(job, target);
gvputs(job, "\"");
}
if (tooltip && tooltip[0]) {
gvputs(job, " title=\"");
- gvputs(job, xml_string(tooltip));
+ gvputs_xml(job, tooltip);
gvputs(job, "\"");
}
/*
static void map_begin_page(GVJ_t * job)
{
obj_state_t *obj = job->obj;
- char *s;
switch (job->render.id) {
case FORMAT_IMAP:
gvputs(job, "base referer\n");
if (obj->url && obj->url[0]) {
gvputs(job, "default ");
- gvputs(job, xml_string(obj->url));
+ gvputs_xml(job, obj->url);
gvputs(job, "\n");
}
break;
case FORMAT_ISMAP:
if (obj->url && obj->url[0]) {
gvputs(job, "default ");
- gvputs(job, xml_string(obj->url));
+ gvputs_xml(job, obj->url);
gvputs(job, " ");
- gvputs(job, xml_string(agnameof(obj->u.g)));
+ gvputs_xml(job, agnameof(obj->u.g));
gvputs(job, "\n");
}
break;
case FORMAT_CMAPX:
- s = xml_string(agnameof(obj->u.g));
gvputs(job, "<map id=\"");
- gvputs(job, s);
+ gvputs_xml(job, agnameof(obj->u.g));
gvputs(job, "\" name=\"");
- gvputs(job, s);
+ gvputs_xml(job, agnameof(obj->u.g));
gvputs(job, "\">\n");
break;
default:
char* str;
GVPUTS(job, "<g id=\"");
- gvputs(job, xml_string(id));
- if (idx)
- gvprintf (job, "_%s", xml_string(idx));
+ gvputs_xml(job, id);
+ if (idx) {
+ GVPUTS(job, "_");
+ gvputs_xml(job, idx);
+ }
gvprintf(job, "\" class=\"%s", kind);
if ((str = agget(obj, "class")) && *str) {
GVPUTS(job, " ");
- gvputs(job, xml_string(str));
+ gvputs_xml(job, str);
}
GVPUTS(job, "\"");
}
static void svg_comment(GVJ_t * job, char *str)
{
GVPUTS(job, "<!-- ");
- gvputs(job, xml_string(str));
+ gvputs_xml(job, str);
GVPUTS(job, " -->\n");
}
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n"
"<!-- Generated by ");
- gvputs(job, xml_string(job->common->info[0]));
+ gvputs_xml(job, job->common->info[0]);
GVPUTS(job, " version ");
- gvputs(job, xml_string(job->common->info[1]));
+ gvputs_xml(job, job->common->info[1]);
GVPUTS(job, " (");
- gvputs(job, xml_string(job->common->info[2]));
+ gvputs_xml(job, job->common->info[2]);
GVPUTS(job, ")\n"
" -->\n");
}
GVPUTS(job, "<!--");
if (agnameof(obj->u.g)[0] && agnameof(obj->u.g)[0] != LOCALNAMEPREFIX) {
GVPUTS(job, " Title: ");
- gvputs(job, xml_string(agnameof(obj->u.g)));
+ gvputs_xml(job, agnameof(obj->u.g));
}
gvprintf(job, " Pages: %d -->\n",
job->pagesArraySize.x * job->pagesArraySize.y);
/* default style */
if (agnameof(obj->u.g)[0] && agnameof(obj->u.g)[0] != LOCALNAMEPREFIX) {
GVPUTS(job, "<title>");
- gvputs(job, xml_string(agnameof(obj->u.g)));
+ gvputs_xml(job, agnameof(obj->u.g));
GVPUTS(job, "</title>\n");
}
}
svg_print_id_class(job, obj->id, NULL, "cluster", obj->u.sg);
GVPUTS(job, ">\n"
"<title>");
- gvputs(job, xml_string(agnameof(obj->u.g)));
+ gvputs_xml(job, agnameof(obj->u.g));
GVPUTS(job, "</title>\n");
}
svg_print_id_class(job, obj->id, idx, "node", obj->u.n);
GVPUTS(job, ">\n"
"<title>");
- gvputs(job, xml_string(agnameof(obj->u.n)));
+ gvputs_xml(job, agnameof(obj->u.n));
GVPUTS(job, "</title>\n");
}
"<title>");
ename = strdup_and_subst_obj("\\E", obj->u.e);
- gvputs(job, xml_string(ename));
+ gvputs_xml(job, ename);
free(ename);
GVPUTS(job, "</title>\n");
}
GVPUTS(job, "<g");
if (id) {
GVPUTS(job, " id=\"a_");
- gvputs(job, xml_string(id));
+ gvputs_xml(job, id);
GVPUTS(job, "\"");
}
GVPUTS(job, ">"
}
if (target && target[0]) {
GVPUTS(job, " target=\"");
- gvputs(job, xml_string(target));
+ gvputs_xml(job, target);
GVPUTS(job, "\"");
}
GVPUTS(job, ">\n");
}
GVPUTS(job, ">");
if (obj->labeledgealigned) {
- gvprintf(job, "<textPath xlink:href=\"#%s_p\" startOffset=\"50%%\">", xml_string(obj->id));
- GVPUTS(job, "<tspan x=\"0\" dy=\"");
+ GVPUTS(job, "<textPath xlink:href=\"#");
+ gvputs_xml(job, obj->id);
+ GVPUTS(job, "_p\" startOffset=\"50%\"><tspan x=\"0\" dy=\"");
gvprintdouble(job, -p.y);
GVPUTS(job, "\">");
}
GVPUTS(job, "<path");
if (obj->labeledgealigned) {
GVPUTS(job, " id=\"");
- gvputs(job, xml_string(obj->id));
+ gvputs_xml(job, obj->id);
GVPUTS(job, "_p\" ");
}
svg_grstyle(job, filled, gid);