aboutsummaryrefslogtreecommitdiff
path: root/test/T050-new.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/T050-new.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/T050-new.sh')
-rwxr-xr-xtest/T050-new.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/T050-new.sh b/test/T050-new.sh
index bc20440b..69697c48 100755
--- a/test/T050-new.sh
+++ b/test/T050-new.sh
@@ -330,7 +330,6 @@ output=$(NOTMUCH_NEW --quiet 2>&1)
test_expect_equal "$output" ""
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
add_message