mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
notmuch search: Fix missing final newline in "notmuch search --output=tags"
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.
This commit is contained in:
parent
9e0d00f37e
commit
fb4ded1cc9
1 changed files with 6 additions and 1 deletions
|
@ -319,7 +319,9 @@ do_search_tags (const void *ctx,
|
||||||
{
|
{
|
||||||
tag = notmuch_tags_get (tags);
|
tag = notmuch_tags_get (tags);
|
||||||
|
|
||||||
if (! first_tag)
|
if (first_tag)
|
||||||
|
fputs (format->results_start, stdout);
|
||||||
|
else
|
||||||
fputs (format->item_sep, stdout);
|
fputs (format->item_sep, stdout);
|
||||||
|
|
||||||
format->item_id (ctx, "", tag);
|
format->item_id (ctx, "", tag);
|
||||||
|
@ -332,6 +334,9 @@ do_search_tags (const void *ctx,
|
||||||
if (messages)
|
if (messages)
|
||||||
notmuch_messages_destroy (messages);
|
notmuch_messages_destroy (messages);
|
||||||
|
|
||||||
|
if (! first_tag)
|
||||||
|
fputs (format->results_end, stdout);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue