From ae293388fd85608622e4b54ec68efeffa34623e6 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 1 Nov 2019 20:58:47 +1300 Subject: [PATCH 1/1] Handle quotes without lead-in --- .mutt/markdown2html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mutt/markdown2html b/.mutt/markdown2html index 44ec07c..540428f 100755 --- a/.mutt/markdown2html +++ b/.mutt/markdown2html @@ -156,7 +156,7 @@ def _identify_quotes_for_later(mdwn): cur, re.MULTILINE)) # All other occurrences of blockquotes get the "subsequent" marker: - elif cur.startswith('>') and not prev.startswith('>'): + elif cur.startswith('>') and prev and not prev.startswith('>'): ret.append(re.sub(r'^((?:\s*>\s*)+)(.+)', r'\g<1>{.quotesubsequent}\g<2>', cur, re.MULTILINE)) -- 2.39.2