diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index 5cab8fb..395639a 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.1.416")] -[assembly: AssemblyFileVersion("3.0.1.416")] +[assembly: AssemblyVersion("3.0.1.417")] +[assembly: AssemblyFileVersion("3.0.1.417")] diff --git a/Core/Formatter.cs b/Core/Formatter.cs index e8dcadf..91e1c61 100644 --- a/Core/Formatter.cs +++ b/Core/Formatter.cs @@ -157,6 +157,23 @@ namespace ScrewTurn.Wiki { ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd); + // Before Producing HTML + match = FullCodeRegex.Match(sb.ToString()); + while(match.Success) { + if(!IsNoWikied(match.Index, noWikiBegin, noWikiEnd, out end)) { + sb.Remove(match.Index, match.Length); + string content = match.Value.Substring(2, match.Length - 4); + dummy = new StringBuilder(); + dummy.Append("
");
+					// IE needs \r\n for line breaks
+					dummy.Append(EscapeWikiMarkup(content).Replace("\n", "\r\n"));
+					dummy.Append("
"); + sb.Insert(match.Index, dummy.ToString()); + } + ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd); + match = FullCodeRegex.Match(sb.ToString(), end); + } + if(current != null) { // Check redirection match = RedirectionRegex.Match(sb.ToString()); @@ -177,23 +194,6 @@ namespace ScrewTurn.Wiki { } } - // Before Producing HTML - match = FullCodeRegex.Match(sb.ToString()); - while(match.Success) { - if(!IsNoWikied(match.Index, noWikiBegin, noWikiEnd, out end)) { - sb.Remove(match.Index, match.Length); - string content = match.Value.Substring(2, match.Length - 4); - dummy = new StringBuilder(); - dummy.Append("
");
-					// IE needs \r\n for line breaks
-					dummy.Append(EscapeWikiMarkup(content).Replace("\n", "\r\n"));
-					dummy.Append("
"); - sb.Insert(match.Index, dummy.ToString()); - } - ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd); - match = FullCodeRegex.Match(sb.ToString(), end); - } - // No more needed (Striked Regex modified) // Temporarily "escape" comments //sb.Replace("