From: martin f. krafft Date: Fri, 1 Nov 2019 07:58:47 +0000 (+1300) Subject: Handle quotes without lead-in X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/ae293388fd85608622e4b54ec68efeffa34623e6?ds=sidebyside;hp=569a1b34e31873a2830931623c82806b5850405c Handle quotes without lead-in --- 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))