diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs
index 1f7615b..6e0d0b8 100644
--- a/AssemblyVersion.cs
+++ b/AssemblyVersion.cs
@@ -16,5 +16,5 @@ using System.Reflection;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("3.0.2.531")]
-[assembly: AssemblyFileVersion("3.0.2.531")]
+[assembly: AssemblyVersion("3.0.2.532")]
+[assembly: AssemblyFileVersion("3.0.2.532")]
diff --git a/Core/Formatter.cs b/Core/Formatter.cs
index fcee299..d42311a 100644
--- a/Core/Formatter.cs
+++ b/Core/Formatter.cs
@@ -278,73 +278,75 @@ namespace ScrewTurn.Wiki {
while(match.Success) {
if(!IsNoWikied(match.Index, noWikiBegin, noWikiEnd, out end)) {
sb.Remove(match.Index, match.Length);
- switch(match.Value.Substring(1, match.Value.Length - 2).ToUpperInvariant()) {
- case "WIKITITLE":
- sb.Insert(match.Index, Settings.WikiTitle);
- break;
- case "WIKIVERSION":
- sb.Insert(match.Index, Settings.WikiVersion);
- break;
- case "MAINURL":
- sb.Insert(match.Index, Settings.MainUrl);
- break;
- case "RSSPAGE":
- if(current != null) {
- sb.Insert(match.Index, @"
");
- }
- break;
- case "THEMEPATH":
- sb.Insert(match.Index, Settings.GetThemePath(Tools.DetectCurrentNamespace()));
- break;
- case "CLEAR":
- sb.Insert(match.Index, @"
");
- break;
- case "BR":
- //if(!AreSingleLineBreaksToBeProcessed()) sb.Insert(match.Index, "
");
- sb.Insert(match.Index, "
");
- break;
- case "TOP":
- sb.Insert(match.Index, @"" + Exchanger.ResourceExchanger.GetResource("Top") + "");
- break;
- case "SEARCHBOX":
- string textBoxId = "SB" + Guid.NewGuid().ToString("N");
+ if(!forIndexing) {
+ switch(match.Value.Substring(1, match.Value.Length - 2).ToUpperInvariant()) {
+ case "WIKITITLE":
+ sb.Insert(match.Index, Settings.WikiTitle);
+ break;
+ case "WIKIVERSION":
+ sb.Insert(match.Index, Settings.WikiVersion);
+ break;
+ case "MAINURL":
+ sb.Insert(match.Index, Settings.MainUrl);
+ break;
+ case "RSSPAGE":
+ if(current != null) {
+ sb.Insert(match.Index, @"
");
+ }
+ break;
+ case "THEMEPATH":
+ sb.Insert(match.Index, Settings.GetThemePath(Tools.DetectCurrentNamespace()));
+ break;
+ case "CLEAR":
+ sb.Insert(match.Index, @"");
+ break;
+ case "BR":
+ //if(!AreSingleLineBreaksToBeProcessed()) sb.Insert(match.Index, "
");
+ sb.Insert(match.Index, "
");
+ break;
+ case "TOP":
+ sb.Insert(match.Index, @"" + Exchanger.ResourceExchanger.GetResource("Top") + "");
+ break;
+ case "SEARCHBOX":
+ string textBoxId = "SB" + Guid.NewGuid().ToString("N");
- string nsstring = ns != null ? NameTools.GetFullName(ns.Name, "Search") + ".aspx" : "Search.aspx";
- string doSearchFunction = "";
- sb.Insert(match.Index, doSearchFunction +
- @" »");
- break;
- case "CATEGORIES":
- List cats = Pages.GetCategories(ns);
- string pageName = ns != null ? NameTools.GetFullName(ns.Name, "AllPages") + ".aspx" : "AllPages.aspx";
- pageName += "?Cat=";
- string categories = "";
- sb.Insert(match.Index, categories);
- break;
- case "CLOUD":
- string cloud = BuildCloud(DetectNamespaceInfo(current));
- sb.Insert(match.Index, cloud);
- break;
- case "PAGECOUNT":
- sb.Insert(match.Index, Pages.GetPages(DetectNamespaceInfo(current)).Count.ToString());
- break;
- case "PAGECOUNT(*)":
- sb.Insert(match.Index, Pages.GetGlobalPageCount().ToString());
- break;
- case "ORPHANS":
- if(!forIndexing) sb.Insert(match.Index, BuildOrphanedPagesList(DetectNamespaceInfo(current), context, current));
- break;
- case "WANTED":
- sb.Insert(match.Index, BuildWantedPagesList(DetectNamespaceInfo(current)));
- break;
- case "NAMESPACELIST":
- sb.Insert(match.Index, BuildNamespaceList());
- break;
+ string nsstring = ns != null ? NameTools.GetFullName(ns.Name, "Search") + ".aspx" : "Search.aspx";
+ string doSearchFunction = "";
+ sb.Insert(match.Index, doSearchFunction +
+ @" »");
+ break;
+ case "CATEGORIES":
+ List cats = Pages.GetCategories(ns);
+ string pageName = ns != null ? NameTools.GetFullName(ns.Name, "AllPages") + ".aspx" : "AllPages.aspx";
+ pageName += "?Cat=";
+ string categories = "";
+ sb.Insert(match.Index, categories);
+ break;
+ case "CLOUD":
+ string cloud = BuildCloud(DetectNamespaceInfo(current));
+ sb.Insert(match.Index, cloud);
+ break;
+ case "PAGECOUNT":
+ sb.Insert(match.Index, Pages.GetPages(DetectNamespaceInfo(current)).Count.ToString());
+ break;
+ case "PAGECOUNT(*)":
+ sb.Insert(match.Index, Pages.GetGlobalPageCount().ToString());
+ break;
+ case "ORPHANS":
+ sb.Insert(match.Index, BuildOrphanedPagesList(DetectNamespaceInfo(current), context, current));
+ break;
+ case "WANTED":
+ sb.Insert(match.Index, BuildWantedPagesList(DetectNamespaceInfo(current)));
+ break;
+ case "NAMESPACELIST":
+ sb.Insert(match.Index, BuildNamespaceList());
+ break;
+ }
}
}
ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd);