aboutsummaryrefslogtreecommitdiff
path: root/test/T070-insert.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-09-30 14:17:48 -0300
committerDavid Bremner <david@tethera.net>2021-12-04 12:16:12 -0400
commitbab633d3ac87167dc214094f9d340655885a01b1 (patch)
tree7c34ed13cdbecbb7c2ade6e5009b16870bf93f4e /test/T070-insert.sh
parente22bbb124e4f9191880e80d6517346f35bf7e2a9 (diff)
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
Diffstat (limited to 'test/T070-insert.sh')
-rwxr-xr-xtest/T070-insert.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/T070-insert.sh b/test/T070-insert.sh
index 9d29c859..ec170b30 100755
--- a/test/T070-insert.sh
+++ b/test/T070-insert.sh
@@ -235,7 +235,6 @@ test_json_nodes <<<"$output" \
'new_tags:[0][0][0]["tags"] = ["bar", "foo"]'
test_begin_subtest "leading/trailing whitespace in new.tags is ignored"
-test_subtest_known_broken
# avoid complications with leading spaces and "notmuch config"
sed -i 's/^tags=.*$/tags= fu bar ; ; bar /' notmuch-config
gen_insert_msg