notmuch: trim excluded tags
Trims whitespace in list of excluded notmuch tags. This allows a comma separated list with spaces to be correctly processed.
This commit is contained in:
parent
a9330f4c63
commit
b56a688589
1 changed files with 3 additions and 0 deletions
|
@ -507,6 +507,9 @@ func (w *worker) loadExcludeTags(
|
|||
return nil
|
||||
}
|
||||
excludedTags := strings.Split(raw, ",")
|
||||
for idx, tag := range excludedTags {
|
||||
excludedTags[idx] = strings.Trim(tag, " ")
|
||||
}
|
||||
return excludedTags
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue