Added warning when transcluding an inexistent page.
This commit is contained in:
parent
fef1495165
commit
1d819c137f
2 changed files with 3 additions and 2 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("3.0.0.344")]
|
[assembly: AssemblyVersion("3.0.0.345")]
|
||||||
[assembly: AssemblyFileVersion("3.0.0.344")]
|
[assembly: AssemblyFileVersion("3.0.0.345")]
|
||||||
|
|
|
@ -401,6 +401,7 @@ namespace ScrewTurn.Wiki {
|
||||||
dummy.Append("</div>");
|
dummy.Append("</div>");
|
||||||
sb.Insert(match.Index, dummy.ToString());
|
sb.Insert(match.Index, dummy.ToString());
|
||||||
}
|
}
|
||||||
|
else sb.Insert(match.Index, @"<b style=""color: #FF0000;"">FORMATTER ERROR (Transcluded inexistent page or this same page)</b>");
|
||||||
}
|
}
|
||||||
ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd);
|
ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd);
|
||||||
match = TransclusionRegex.Match(sb.ToString(), end);
|
match = TransclusionRegex.Match(sb.ToString(), end);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue