Fixed regression introduced with fix to regression introduced with fix to #305.
This commit is contained in:
parent
0edaac7132
commit
c135c883fe
2 changed files with 4 additions and 4 deletions
|
@ -93,8 +93,8 @@ second line@@
|
||||||
|
|
||||||
private const string ExpectedOutput =
|
private const string ExpectedOutput =
|
||||||
@"<b>bold</b> <i>italic</i> <u>underlined</u> <strike>striked</strike>
|
@"<b>bold</b> <i>italic</i> <u>underlined</u> <strike>striked</strike>
|
||||||
<a class=""pagelink"" href=""page1.ashx"" title=""Page 1"">page1</a> <a class=""unknownlink"" href=""page2.ashx"" title=""page2"">title</a><br /><br /><pre>* item 1
|
<a class=""pagelink"" href=""page1.ashx"" title=""Page 1"">page1</a> <a class=""unknownlink"" href=""page2.ashx"" title=""page2"">title</a><br /><br /><pre>* item 1
|
||||||
* item 2
|
* item 2
|
||||||
second line</pre><br /><table><tr><td>cell</td><td>other cell</td></tr></table>
|
second line</pre><br /><table><tr><td>cell</td><td>other cell</td></tr></table>
|
||||||
";
|
";
|
||||||
|
|
||||||
|
|
|
@ -164,10 +164,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("<nobr><pre>");
|
dummy.Append("<pre><nobr>");
|
||||||
// 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></nobr>");
|
dummy.Append("</nobr></pre>");
|
||||||
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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue