Fixed #426: HTML comments are now replaced with a space rather than removed altogether so that they do not introduce blank lines.

This commit is contained in:
Dario Solera 2009-11-28 14:08:43 +00:00
parent 5cb2898572
commit 826877c72e
2 changed files with 3 additions and 2 deletions

View file

@ -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")]

View file

@ -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);
}
}