From: Adam Dickmeiss Date: Fri, 6 Dec 2013 10:28:40 +0000 (+0100) Subject: marc json write: Combine two wrbuf calls into one X-Git-Tag: v5.0.5~10 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=1ecf21b0324959e62628807d5df217d7a761730b;p=yaz-moved-to-github.git marc json write: Combine two wrbuf calls into one --- diff --git a/src/marcdisp.c b/src/marcdisp.c index edb0c9b..b3b253e 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -1312,8 +1312,7 @@ int yaz_marc_write_json(yaz_marc_t mt, WRBUF w) int i; for (i = 0; n->u.datafield.indicator[i]; i++) { - wrbuf_puts(w, ",\n"); - wrbuf_printf(w, "\t\t\t\t\"ind%d\":\"%c\"", i + 1, + wrbuf_printf(w, ",\n\t\t\t\t\"ind%d\":\"%c\"", i + 1, n->u.datafield.indicator[i]); } }