From 1ecf21b0324959e62628807d5df217d7a761730b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 6 Dec 2013 11:28:40 +0100 Subject: [PATCH 1/1] marc json write: Combine two wrbuf calls into one --- src/marcdisp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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]); } } -- 1.7.10.4