~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to pybb/util.py

  • Committer: Holger Rapp
  • Date: 2009-03-15 20:19:52 UTC
  • mto: This revision was merged to the branch mainline in revision 64.
  • Revision ID: sirver@kallisto.local-20090315201952-eaug9ff2ec8qx1au
Fixed a bug with broken notification support

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
    text = user.username + " wrote:\n" + text
174
174
 
175
175
    # if markup == 'markdown':
176
 
    if markup == 'markdown':
 
176
    if markup:
177
177
        return '>'+text.replace('\n','\n>').replace('\r','\n>') + '\n'
178
 
    elif markup == 'bbcode':
179
 
        return '[quote]\n%s\n[/quote]\n' % text
180
178
    else:
181
179
        return text
 
180
    # elif markup == 'bbcode':
 
181
    #     return '[quote]\n%s\n[/quote]\n' % text
 
182
    # else:
 
183
        # return text
182
184
 
183
185
 
184
186
def absolute_url(path):