aboutsummaryrefslogtreecommitdiffstats
path: root/lib/notmuch/directory.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-09-01 09:29:33 +0200
committerRobin Jarry <robin@jarry.cc>2023-09-04 15:10:06 +0200
commita5c4f5d3163a84c0a019fd9dc662f6e49a89818b (patch)
tree421e4b6f76c62475c9cce3128c02ae5181a359fd /lib/notmuch/directory.go
parent83bd28cde61e6663a98e02c7bc769e374df5a6f0 (diff)
downloadaerc-a5c4f5d3163a84c0a019fd9dc662f6e49a89818b.tar.gz
colorize: handle spaces in styleset
Avoid failure when the styleset [viewer] section contains spaces: ~$ cat foo [viewer] url.fg = #ffffaf url.underline = true header.fg = #af87ff signature.fg = #af87ff diff_meta.fg = #ffffff diff_meta.bold = true diff_chunk.fg = #00cdcd diff_add.fg = #00cd00 diff_del.fg = #cd0000 quote_1.fg = #5fafff quote_2.fg = #ff8700 quote_3.fg = #af87ff quote_4.fg = #ff5fd7 quote_x.fg = #808080 ~$ ./colorize -s foo < bar.eml error: invalid style attribute 'fg ' Be more restrictive with what characters are part of a style attribute. Add test styleset with as much weirdness as possible. Update vectors accordingly. Update sendemail-validate hook to export pedantic CFLAGS. Reported-by: Tristan Partin <tristan@partin.io> Signed-off-by: Robin Jarry <robin@jarry.cc> Reviewed-by: Tristan Partin <tristan@partin.io> Tested-by: Tristan Partin <tristan@partin.io>
Diffstat (limited to 'lib/notmuch/directory.go')
0 files changed, 0 insertions, 0 deletions