From 7ed042f7432dce83bdd12ea177b19cfd5441433c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 6 Sep 2020 10:27:38 -0700 Subject: [PATCH] simplify xdot_style with agxbprint --- plugin/core/gvrender_core_dot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)); } -- 2.50.1