# HG changeset patch # User Brian Neal # Date 1410394919 18000 # Node ID 97f8fab9b1a312cc3c2a878b976c4a84e2d80604 # Parent 95462f4adb943b9f48aaa6a100f587b0e3a81a49 Tweaking the quoting algorithm a bit. Trying to reduce trailing lines that are just ">". diff -r 95462f4adb94 -r 97f8fab9b1a3 core/functions.py --- 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]