Mercurial > public > sg101
comparison gpp/messages/utils.py @ 417:538a1bd2f1f4
Tweak quoting for Markdown. Fixing #209.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 16 Apr 2011 19:30:29 +0000 |
parents | dbd703f7d63a |
children | 4b9970ad0edb |
comparison
equal
deleted
inserted
replaced
416:aabee29cadac | 417:538a1bd2f1f4 |
---|---|
24 """ | 24 """ |
25 header = '> On %s, %s wrote:\n>\n' % (date.strftime('%a, %b %d %Y, %I:%M %p'), who) | 25 header = '> On %s, %s wrote:\n>\n' % (date.strftime('%a, %b %d %Y, %I:%M %p'), who) |
26 lines = wrap(message, 55).split('\n') | 26 lines = wrap(message, 55).split('\n') |
27 for i, line in enumerate(lines): | 27 for i, line in enumerate(lines): |
28 lines[i] = '> ' + line | 28 lines[i] = '> ' + line |
29 return header + '\n'.join(lines) | 29 return header + '\n'.join(lines) + '\n\n' |