Fixed issue #362: HTML comments are now rendered in the output.

This commit is contained in:
Dario Solera 2009-10-07 12:19:49 +00:00
parent 947e8cdce0
commit 94dc584129
2 changed files with 7 additions and 7 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 // 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.0.340")] [assembly: AssemblyVersion("3.0.0.341")]
[assembly: AssemblyFileVersion("3.0.0.340")] [assembly: AssemblyFileVersion("3.0.0.341")]

View file

@ -151,11 +151,11 @@ namespace ScrewTurn.Wiki {
} }
// Strip out all comments // Strip out all comments
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);
match = CommentRegex.Match(sb.ToString(), match.Index + 1); // match = CommentRegex.Match(sb.ToString(), match.Index + 1);
} //}
// Remove empty NoWiki and NoBr tags // Remove empty NoWiki and NoBr tags
sb.Replace("<nowiki></nowiki>", ""); sb.Replace("<nowiki></nowiki>", "");