projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82fc895
)
marc json write: Combine two wrbuf calls into one
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 6 Dec 2013 10:28:40 +0000
(11:28 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 6 Dec 2013 10:28:40 +0000
(11:28 +0100)
src/marcdisp.c
patch
|
blob
|
history
diff --git
a/src/marcdisp.c
b/src/marcdisp.c
index
edb0c9b
..
b3b253e
100644
(file)
--- 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]);
}
}