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:
parent
5cb2898572
commit
826877c72e
2 changed files with 3 additions and 2 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("3.0.1.437")]
|
[assembly: AssemblyVersion("3.0.1.438")]
|
||||||
[assembly: AssemblyFileVersion("3.0.1.437")]
|
[assembly: AssemblyFileVersion("3.0.1.438")]
|
||||||
|
|
|
@ -842,6 +842,7 @@ namespace ScrewTurn.Wiki {
|
||||||
match = CommentRegex.Match(sb.ToString());
|
match = CommentRegex.Match(sb.ToString());
|
||||||
while(match.Success) {
|
while(match.Success) {
|
||||||
sb.Remove(match.Index, match.Length);
|
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);
|
match = CommentRegex.Match(sb.ToString(), match.Index + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue