From 8bf4b9cf66e5d9dd2091e96db01d5b1a67a41f14 Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Sun, 13 Mar 2011 10:22:10 +0100 Subject: [PATCH] Code cleanup. --- Core/Formatter.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Core/Formatter.cs b/Core/Formatter.cs index 40a3706..5b75728 100644 --- a/Core/Formatter.cs +++ b/Core/Formatter.cs @@ -1742,7 +1742,6 @@ namespace ScrewTurn.Wiki { } else if(targetUrl.Contains(":") || targetUrl.ToLowerInvariant().Contains("%3a") || targetUrl.Contains("&") || targetUrl.Contains("%26")) { sb.Append(@"FORMATTER ERROR ("":"" and ""&"" not supported in Page Names)"); - } else { // The link points to a wiki page @@ -2142,7 +2141,7 @@ namespace ScrewTurn.Wiki { private static string BuildTable(string table) { // Proceed line-by-line, ignoring the first and last one string[] lines = table.Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries); - if(lines.Length < 3) { + if(lines.Length < 3) { return "FORMATTER ERROR (Malformed Table)"; } StringBuilder sb = new StringBuilder(); @@ -2524,10 +2523,8 @@ namespace ScrewTurn.Wiki { string formatterErrorString = @"FORMATTER ERROR (Transcluded inexistent page or this same page)"; sb.Insert(match.Index, formatterErrorString); sb.Insert(match.Index, match); - } - match = TransclusionRegex.Match(sb.ToString()); }