gvputs(job, s);
gvputs(job, "\" type=\"text/css\"?>\n");
}
- gvputs(job, "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n");
- gvputs(job,
- " \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n");
+ gvputs(job, "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n"
+ " \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n"
- gvputs(job, "<!-- Generated by ");
+ "<!-- Generated by ");
gvputs(job, xml_string(job->common->info[0]));
gvputs(job, " version ");
gvputs(job, xml_string(job->common->info[1]));
gvputs(job, " (");
gvputs(job, xml_string(job->common->info[2]));
- gvputs(job, ")\n");
- gvputs(job, " -->\n");
+ gvputs(job, ")\n"
+ " -->\n");
}
static void svg_begin_graph(GVJ_t * job)
job->canvasBox.UR.x,
job->canvasBox.UR.y);
/* namespace of svg */
- gvputs(job, " xmlns=\"http://www.w3.org/2000/svg\"");
+ gvputs(job, " xmlns=\"http://www.w3.org/2000/svg\""
/* namespace of xlink */
- gvputs(job, " xmlns:xlink=\"http://www.w3.org/1999/xlink\"");
- gvputs(job, ">\n");
+ " xmlns:xlink=\"http://www.w3.org/1999/xlink\""
+ ">\n");
}
static void svg_end_graph(GVJ_t * job)
obj_state_t *obj = job->obj;
svg_print_id_class(job, obj->id, NULL, "cluster", obj->u.sg);
- gvputs(job, ">\n");
- gvputs(job, "<title>");
+ gvputs(job, ">\n"
+ "<title>");
gvputs(job, xml_string(agnameof(obj->u.g)));
gvputs(job, "</title>\n");
}
else
idx = NULL;
svg_print_id_class(job, obj->id, idx, "node", obj->u.n);
- gvputs(job, ">\n");
- gvputs(job, "<title>");
+ gvputs(job, ">\n"
+ "<title>");
gvputs(job, xml_string(agnameof(obj->u.n)));
gvputs(job, "</title>\n");
}
char *ename;
svg_print_id_class(job, obj->id, NULL, "edge", obj->u.e);
- gvputs(job, ">\n");
+ gvputs(job, ">\n"
- gvputs(job, "<title>");
+ "<title>");
ename = strdup_and_subst_obj("\\E", (void *) (obj->u.e));
gvputs(job, xml_string(ename));
free(ename);
gvputs(job, xml_string(id));
gvputs(job, "\"");
}
- gvputs(job, ">");
+ gvputs(job, ">"
- gvputs(job, "<a");
+ "<a");
if (href && href[0]) {
gvputs(job, " xlink:href=\"");
gvputs(job, xml_url_string(href));
static void svg_end_anchor(GVJ_t * job)
{
- gvputs(job, "</a>\n");
- gvputs(job, "</g>\n");
+ gvputs(job, "</a>\n"
+ "</g>\n");
}
static void svg_textspan(GVJ_t * job, pointf p, textspan_t * span)
gvprintf(job, "%f", ((float) obj->fillcolor.u.rgba[3] / 255.0));
else
gvputs(job, "1.");
- gvputs(job, ";\"/>\n");
- gvputs(job, "<stop offset=\"1\" style=\"stop-color:");
+ gvputs(job, ";\"/>\n"
+ "<stop offset=\"1\" style=\"stop-color:");
svg_print_color(job, obj->stopcolor);
gvputs(job, ";stop-opacity:");
if (obj->stopcolor.type == RGBA_BYTE && obj->stopcolor.u.rgba[3] > 0