handle original smileys macro

This commit is contained in:
Elan Ruusamäe 2012-09-17 11:11:10 +02:00
parent ab349e1576
commit da1a497b0b

View file

@ -273,11 +273,15 @@ class Formatter(FormatterBase):
mail = mail.replace(' DOT ', '.')
return '[[%s|%s]]' % (mail, args)
def smileys(args):
return apply(FormatterBase.macro, (self, macro_obj, name, args))
try:
lookup = {
'BR' : '\\\\',
'MailTo' : email,
'GetText' : args,
'ShowSmileys' : smileys,
}[name]
except KeyError:
lookup = '/* UndefinedMacro: %s(%s) */' % (name, args)