X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/569a1b34e31873a2830931623c82806b5850405c..ae293388fd85608622e4b54ec68efeffa34623e6:/.mutt/markdown2html 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))