From 1411385a018fb7a75aafd551c15065084d8d46c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 22 Sep 2012 15:35:50 +0200 Subject: [PATCH] handle Self interwiki as local links --- text_dokuwiki.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/text_dokuwiki.py b/text_dokuwiki.py index bba5375..c6e08e9 100644 --- a/text_dokuwiki.py +++ b/text_dokuwiki.py @@ -66,6 +66,8 @@ class Formatter(FormatterBase): def interwikilink(self, on, interwiki='', pagename='', **kw): if on: + if interwiki == 'Self': + return self.pagelink(on, pagename, **kw) return '[[%s>%s|' % (interwiki, pagename) else: return ']]'