From da1a497b0ba1e1d4462868e5ef6b93cb60f3cc67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 17 Sep 2012 11:11:10 +0200 Subject: [PATCH] handle original smileys macro --- text_dokuwiki.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/text_dokuwiki.py b/text_dokuwiki.py index 856580d..7ae708d 100644 --- a/text_dokuwiki.py +++ b/text_dokuwiki.py @@ -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)