From: Emden R. Gansner Date: Tue, 9 Feb 2016 22:55:07 +0000 (-0500) Subject: Small cosmetic change: final newline; newline before xdot list. X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33256d42e4058128aa3f0aac793b132c5b3a3397;p=graphviz Small cosmetic change: final newline; newline before xdot list. --- diff --git a/plugin/core/gvrender_core_json.c b/plugin/core/gvrender_core_json.c index d99437f61..baf808766 100644 --- a/plugin/core/gvrender_core_json.c +++ b/plugin/core/gvrender_core_json.c @@ -313,6 +313,7 @@ static void write_xdots (char * val, GVJ_t * job, state_t* sp) return; } + gvputs(job, "\n"); indent (job, sp->Level++); gvputs(job, "[\n"); for (i = 0; i < cmds->cnt; i++) { @@ -528,7 +529,10 @@ static void write_graph(Agraph_t * g, GVJ_t * job, int top, state_t* sp) gvputs(job, "\n"); sp->Level--; indent (job, sp->Level); - gvputs(job, "}"); + if (top) + gvputs(job, "}\n"); + else + gvputs(job, "}"); } typedef int (*putstrfn) (void *chan, const char *str);