From 826877c72eb6e1f979dda6e9a3dc23f75a896e4f Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Sat, 28 Nov 2009 14:08:43 +0000 Subject: [PATCH] Fixed #426: HTML comments are now replaced with a space rather than removed altogether so that they do not introduce blank lines. --- AssemblyVersion.cs | 4 ++-- Core/Formatter.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index b9ad570..3d3f31f 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.437")] -[assembly: AssemblyFileVersion("3.0.1.437")] +[assembly: AssemblyVersion("3.0.1.438")] +[assembly: AssemblyFileVersion("3.0.1.438")] diff --git a/Core/Formatter.cs b/Core/Formatter.cs index a1831c7..b04fb6d 100644 --- a/Core/Formatter.cs +++ b/Core/Formatter.cs @@ -842,6 +842,7 @@ namespace ScrewTurn.Wiki { match = CommentRegex.Match(sb.ToString()); while(match.Success) { sb.Remove(match.Index, match.Length); + sb.Insert(match.Index, " "); // This prevents the creation of additional blank lines match = CommentRegex.Match(sb.ToString(), match.Index + 1); } }