Fixed #468: Formatter and ReverseFormatter now process inter-namespace links correctly.

This commit is contained in:
Dario Solera 2010-01-27 13:01:09 +00:00
parent f8e410bf6a
commit c86aa2f318
4 changed files with 15 additions and 12 deletions

View file

@ -234,7 +234,7 @@ namespace ScrewTurn.Wiki {
string insertion = "[";
if(match.Groups[2].Value == @"target=""_blank"" ") insertion += "^";
string decoded = UrlDecode(match.Groups[3].Value);
insertion += decoded;
insertion += (decoded.StartsWith(" ") ? "++" : "") + decoded.Trim();
if(match.Groups[6].Value != decoded) insertion += "|" + match.Groups[6].Value;
insertion += "]";
buffer.Insert(match.Index, insertion);