Code cleanup.
This commit is contained in:
parent
0d1c65d636
commit
8bf4b9cf66
1 changed files with 1 additions and 4 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue