]> git.cworth.org Git - notmuch/commitdiff
config: ignore leading/trailing spaces in ';'-delimited lists
authorDavid Bremner <david@tethera.net>
Thu, 30 Sep 2021 17:17:48 +0000 (14:17 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 4 Dec 2021 16:16:12 +0000 (12:16 -0400)
In [1] Ciprian observed that it was easy for users to mistakenly
introduce leading and trailing space to new.tags when editing a
notmuch config file. This commit strips spaces on either side of the
';' delimiter when splitting.

In principle it would be possible to support tags (or other config
values) with leading or trailing spaces by processing '\s' escapes in
the input string. Currently such processing is not done.

[1]: id:CA+Tk8fzjPLaEd3vL1f9ebk_bF_RV8PDTLzDupraTkCLCpJAmCg@mail.gmail.com


No differences found