changeset 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 95462f4adb94
children 74e84f5fc948
files core/functions.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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]