comparison gpp/forums/views/main.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 c374bfd5594f
children e9f203c5f5bb
comparison
equal deleted inserted replaced
416:aabee29cadac 417:538a1bd2f1f4
998 """ 998 """
999 header = '*%s wrote:*\n\n' % (who, ) 999 header = '*%s wrote:*\n\n' % (who, )
1000 lines = wrap(message, 55).split('\n') 1000 lines = wrap(message, 55).split('\n')
1001 for i, line in enumerate(lines): 1001 for i, line in enumerate(lines):
1002 lines[i] = '> ' + line 1002 lines[i] = '> ' + line
1003 return header + '\n'.join(lines) 1003 return header + '\n'.join(lines) + '\n\n'
1004 1004
1005 1005
1006 def _move_topic(topic, old_forum, new_forum): 1006 def _move_topic(topic, old_forum, new_forum):
1007 if new_forum != old_forum: 1007 if new_forum != old_forum:
1008 topic.forum = new_forum 1008 topic.forum = new_forum