Letractively / schnell

Automatically exported from code.google.com/p/schnell
GNU Lesser General Public License v2.1
0 stars 0 forks source link

7 or more equals (=) generates ArgumentOutOfRangeException #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Simply supply a wiki document consisting of 7 or more equal signs (=) on a 
single line.

What is the expected output? What do you see instead?

The resulting HTML should have a body with a single paragraph that 
contains those equal signs. They should not be converted to heading. 
Instead, the parser fails with the following error:

System.ArgumentOutOfRangeException: Exception of 
type 'System.ArgumentOutOfRangeException' was thrown.
Parameter name: level
Actual value was 44.
   at Schnell.WikiHeadingToken..ctor(Int32 level) in 
C:\schnell\src\Schnell\WikiToken.cs:line 84
   at Schnell.WikiParser.<ParseHeading>d__1b.MoveNext() in 
C:\schnell\src\Schnell\WikiParser.cs:line 338
   at Schnell.WikiParser.<ParseBody>d__2.MoveNext() in 
C:\schnell\src\Schnell\WikiParser.cs:line 185
   at Schnell.HtmlFormatter.Format(IEnumerable`1 tokens, HtmlTextWriter 
writer) in C:\schnell\src\Schnell\HtmlFormatter.cs:line 49
   at Schnell.Web.UI.Controls.WikiText.Format(IEnumerable`1 tokens, 
HtmlTextWriter writer) in 
C:\schnell\src\Schnell\Web\UI\Controls\WikiText.cs:line 166
   at Schnell.Web.UI.Controls.WikiText.RenderContents(HtmlTextWriter 
writer) in C:\schnell\src\Schnell\Web\UI\Controls\WikiText.cs:line 110
...

Original issue reported on code.google.com by azizatif on 13 May 2008 at 10:49

GoogleCodeExporter commented 8 years ago

Original comment by azizatif on 13 May 2008 at 10:49