handle original smileys macro
This commit is contained in:
parent
ab349e1576
commit
da1a497b0b
1 changed files with 4 additions and 0 deletions
|
@ -273,11 +273,15 @@ class Formatter(FormatterBase):
|
||||||
mail = mail.replace(' DOT ', '.')
|
mail = mail.replace(' DOT ', '.')
|
||||||
return '[[%s|%s]]' % (mail, args)
|
return '[[%s|%s]]' % (mail, args)
|
||||||
|
|
||||||
|
def smileys(args):
|
||||||
|
return apply(FormatterBase.macro, (self, macro_obj, name, args))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
lookup = {
|
lookup = {
|
||||||
'BR' : '\\\\',
|
'BR' : '\\\\',
|
||||||
'MailTo' : email,
|
'MailTo' : email,
|
||||||
'GetText' : args,
|
'GetText' : args,
|
||||||
|
'ShowSmileys' : smileys,
|
||||||
}[name]
|
}[name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
lookup = '/* UndefinedMacro: %s(%s) */' % (name, args)
|
lookup = '/* UndefinedMacro: %s(%s) */' % (name, args)
|
||||||
|
|
Loading…
Reference in a new issue