diff core/functions.py @ 816:97f8fab9b1a3

Tweaking the quoting algorithm a bit. Trying to reduce trailing lines that are just ">".
author Brian Neal <bgneal@gmail.com>
date Wed, 10 Sep 2014 19:21:59 -0500
parents e888d627928f
children 79a71b9d0a2a
line wrap: on
line diff
--- a/core/functions.py	Tue Sep 09 20:37:05 2014 -0500
+++ b/core/functions.py	Wed Sep 10 19:21:59 2014 -0500
@@ -123,7 +123,7 @@
     Builds a message reply by quoting the existing message in a
     typical email-like fashion. The quoting is compatible with Markdown.
     """
-    msg = "> %s" % message.replace('\n', '\n> ')
+    msg = "> %s" % message.rstrip().replace('\n', '\n> ')
     if msg.endswith('\n> '):
         msg = msg[:-2]