aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-08-11 23:26:46 +0200
committerRobin Jarry <robin@jarry.cc>2023-09-19 22:58:28 +0200
commitb12728f3320c34ee293cc1d1a48dac4ca60ed54b (patch)
tree39d49e4665b1ecdce64bee29dd3b9ccf4df08254
parent048f0242f6ab058ae8b4d4865f28c4c10bd54ac4 (diff)
downloadaerc-b12728f3320c34ee293cc1d1a48dac4ca60ed54b.tar.gz
aerc-b12728f3320c34ee293cc1d1a48dac4ca60ed54b.zip
docs: fix typo in stylesets regexp example
The backslashes must be escaped, otherwise they are not rendered by scdoc. Fixes: 2f46f64b0b0b ("styleset: allow dynamic msglist styling") Reported-by: Vitaly Ovchinnikov <v@postbox.nz> Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
-rw-r--r--doc/aerc-stylesets.7.scd4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/aerc-stylesets.7.scd b/doc/aerc-stylesets.7.scd
index 3ec5640c..8083888b 100644
--- a/doc/aerc-stylesets.7.scd
+++ b/doc/aerc-stylesets.7.scd
@@ -310,8 +310,8 @@ Examples:
msglist\*.X-Sourcehut-Patchset-Update,APPROVED.fg = green
msglist\*.X-Sourcehut-Patchset-Update,NEEDS\_REVISION.fg = yellow
msglist\*.X-Sourcehut-Patchset-Update,REJECTED.fg = red
-"msglist_*.Subject,~^(\[[\w-]+\]\s*)?\[(RFC )?PATCH.fg" = #ffffaf
-"msglist_*.Subject,~^(\[[\w-]+\]\s*)?\[(RFC )?PATCH.selected.fg" = #ffffaf
+"msglist_*.Subject,~^(\\[[\w-]+\]\\s*)?\\[(RFC )?PATCH.fg" = #ffffaf
+"msglist_*.Subject,~^(\\[[\w-]+\]\\s*)?\\[(RFC )?PATCH.selected.fg" = #ffffaf
```
When a dynamic style is matched to an email header, it will be used in priority