As mentioned in the recent test commits, this also fixes the missing
'[' and ']' characters in the --format=json variant of "notmuch search
--output=tags" as well.
{
tag = notmuch_tags_get (tags);
- if (! first_tag)
+ if (first_tag)
+ fputs (format->results_start, stdout);
+ else
fputs (format->item_sep, stdout);
format->item_id (ctx, "", tag);
if (messages)
notmuch_messages_destroy (messages);
+ if (! first_tag)
+ fputs (format->results_end, stdout);
+
return 0;
}