Code cleanup.

This commit is contained in:
Dario Solera 2011-03-13 10:22:10 +01:00
parent 0d1c65d636
commit 8bf4b9cf66

View file

@ -1742,7 +1742,6 @@ namespace ScrewTurn.Wiki {
} }
else if(targetUrl.Contains(":") || targetUrl.ToLowerInvariant().Contains("%3a") || targetUrl.Contains("&") || targetUrl.Contains("%26")) { else if(targetUrl.Contains(":") || targetUrl.ToLowerInvariant().Contains("%3a") || targetUrl.Contains("&") || targetUrl.Contains("%26")) {
sb.Append(@"<b style=""color: #FF0000;"">FORMATTER ERROR ("":"" and ""&"" not supported in Page Names)</b>"); sb.Append(@"<b style=""color: #FF0000;"">FORMATTER ERROR ("":"" and ""&"" not supported in Page Names)</b>");
} }
else { else {
// The link points to a wiki page // The link points to a wiki page
@ -2524,10 +2523,8 @@ namespace ScrewTurn.Wiki {
string formatterErrorString = @"<b style=""color: #FF0000;"">FORMATTER ERROR (Transcluded inexistent page or this same page)</b>"; string formatterErrorString = @"<b style=""color: #FF0000;"">FORMATTER ERROR (Transcluded inexistent page or this same page)</b>";
sb.Insert(match.Index, formatterErrorString); sb.Insert(match.Index, formatterErrorString);
sb.Insert(match.Index, match); sb.Insert(match.Index, match);
} }
match = TransclusionRegex.Match(sb.ToString()); match = TransclusionRegex.Match(sb.ToString());
} }