]> git.notmuchmail.org Git - notmuch/commit
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)
commitbab633d3ac87167dc214094f9d340655885a01b1
tree7c34ed13cdbecbb7c2ade6e5009b16870bf93f4e
parente22bbb124e4f9191880e80d6517346f35bf7e2a9
config: ignore leading/trailing spaces in ';'-delimited lists

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
test/T050-new.sh
test/T070-insert.sh
test/T590-libconfig.sh
util/string-util.c