X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/d60226ed4be8d76d12ee1db8f46ee49de9c3a567..ae293388fd85608622e4b54ec68efeffa34623e6:/.mutt/markdown2html?ds=inline 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))