diff options
author | Robin Jarry <robin@jarry.cc> | 2022-12-14 11:14:24 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-12-14 22:17:26 +0100 |
commit | 85bfa54baaca7530786c59c29a4acaac2698f656 (patch) | |
tree | ab61ed863d4a2d26026ee5b66e2b9deaa18b42eb | |
parent | 86eed28e65aed43a4b017f758405ca85fd74bf21 (diff) | |
download | aerc-85bfa54baaca7530786c59c29a4acaac2698f656.tar.gz |
wrap: handle letters as list items
In addition of digits, handle lower case letters as list items:
a) foo
b) baz
c) bar
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
-rw-r--r-- | filters/wrap.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filters/wrap.go b/filters/wrap.go index f1b335cc..ea5186d4 100644 --- a/filters/wrap.go +++ b/filters/wrap.go @@ -260,7 +260,7 @@ func (p *paragraph) write(out io.Writer, margin int, proseRatio int) { var ( patchSubjectRe = regexp.MustCompile(`\bPATCH\b`) - listItemRe = regexp.MustCompile(`^\s*([\-\*\.]|\d{1,2}[\)\]\.])\s+`) + listItemRe = regexp.MustCompile(`^\s*([\-\*\.]|[a-z\d]{1,2}[\)\]\.])\s+`) leadingSpaceRe = regexp.MustCompile(`^\s+`) trailingSpaceRe = regexp.MustCompile(`\s+$`) notLetterRe = regexp.MustCompile(`[^\pL]`) |