Fixed regression introduced with fix to #305.

This commit is contained in:
Dario Solera 2009-10-22 15:20:55 +00:00
parent 16bcab85ea
commit bc3a5fa51f
2 changed files with 4 additions and 4 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.1.415")] [assembly: AssemblyVersion("3.0.1.416")]
[assembly: AssemblyFileVersion("3.0.1.415")] [assembly: AssemblyFileVersion("3.0.1.416")]

View file

@ -184,10 +184,10 @@ namespace ScrewTurn.Wiki {
sb.Remove(match.Index, match.Length); sb.Remove(match.Index, match.Length);
string content = match.Value.Substring(2, match.Length - 4); string content = match.Value.Substring(2, match.Length - 4);
dummy = new StringBuilder(); dummy = new StringBuilder();
dummy.Append("<pre>"); dummy.Append("<nobr><pre>");
// IE needs \r\n for line breaks // IE needs \r\n for line breaks
dummy.Append(EscapeWikiMarkup(content).Replace("\n", "\r\n")); dummy.Append(EscapeWikiMarkup(content).Replace("\n", "\r\n"));
dummy.Append("</pre>"); dummy.Append("</pre></nobr>");
sb.Insert(match.Index, dummy.ToString()); sb.Insert(match.Index, dummy.ToString());
} }
ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd); ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd);