# HG changeset patch # User Ludovic Chabant # Date 1389514979 28800 # Node ID cba3a31595c7f660f52b29a875843c38836e234f # Parent 81e39ae8aef0ddbc150cf53fc2327fc50c93d7ac Fixed formatting of absolute wiki links. diff -r 81e39ae8aef0 -r cba3a31595c7 wikked/formatter.py --- a/wikked/formatter.py Sun Jan 12 00:22:28 2014 -0800 +++ b/wikked/formatter.py Sun Jan 12 00:22:59 2014 -0800 @@ -141,7 +141,7 @@ a, b = m.group(1, 2) url = b if a is None else (a + b) return s._formatWikiLink(ctx, b, url) - text = re.sub(r'\[\[([^\]]+/)?([^\]]+)\]\]', repl4, text) + text = re.sub(r'\[\[([^\]]*/)?([^/\]]+)\]\]', repl4, text) return text