]> git.madduck.net Git - etc/mutt.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Handle quotes without lead-in
authormartin f. krafft <madduck@madduck.net>
Fri, 1 Nov 2019 07:58:47 +0000 (20:58 +1300)
committermartin f. krafft <madduck@madduck.net>
Fri, 1 Nov 2019 07:58:47 +0000 (20:58 +1300)
.mutt/markdown2html

index 44ec07c99cab6ae0fcd109dcac6375a853e93bcc..540428f1d80f6485eb39357f2a92a976d179bf7a 100755 (executable)
@@ -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))