From: Matthew Fernandez Date: Sun, 6 Sep 2020 17:27:38 +0000 (-0700) Subject: simplify xdot_style with agxbprint X-Git-Tag: 2.46.0~20^2^2~77^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ed042f7432dce83bdd12ea177b19cfd5441433c;p=graphviz simplify xdot_style with agxbprint --- diff --git a/plugin/core/gvrender_core_dot.c b/plugin/core/gvrender_core_dot.c index 8d820c7a9..21638fce2 100644 --- a/plugin/core/gvrender_core_dot.c +++ b/plugin/core/gvrender_core_dot.c @@ -200,8 +200,7 @@ static void xdot_style (GVJ_t *job) agxbput (&xbuf, "setlinewidth("); sprintf (buf, "%.3f", job->obj->penwidth); xdot_trim_zeros (buf, 0); - agxbput(&xbuf, buf); - agxbputc (&xbuf, ')'); + agxbprint(&xbuf, "%s)", buf); xdot_str (job, "S ", agxbuse(&xbuf)); }