Description

Describe the bug... The subscript markup, see reference,,44,, (produces "see reference44") works great in most cases. But there are certain places where it totally screws up. Esp. when trying to produce subscripts in mathematical excerpts (where "indexing" is displayed as a subscripted i,j, for examlpe, rather than programming language custom of [i][j] or [i,j].

Steps to reproduce

Place the following markup in your text...

T1 is cv,,1,0,, pointer to cv,,1,1,, pointer to ··· cv,,1,n−1,, pointer to cv,,1,n,, T

... and this is what you get:

T1 is cv1,0 pointer to cv1,1 pointer to ··· cv1,n−1 pointer to cv1,n T

Pretty much it looks like most of what I didn't want subscripted is a subscript, and what I did want subscripted was normal text.

Hmmm... I also just noticed that in the code box, the - in n-1 shows up as a solid rectangle. Anyone else see this?

Example

So that this bug report still makes sense after a possible fix, I'm attaching a screen shot:

subscript_img.jpg

Component selection

markup parsing or HTML rendering

Details

MoinMoin Version

this wiki (version 1.7) dev.

Client OS

Windows XP

Browser

Internet Explorer 6.0.2900.2185

Workaround

Discussion

The subscript parsing before the fix was broken for cases when you have a comma in the subscript or when your subscript text is longer than 40 chars. It could lead to some subscript starts being ignored and the intended subscript end being used as a start of some unintended subscript range (that unintentionally ended at some other subscript start).

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/SubscriptRenderingIsBroken (last edited 2008-06-09 11:27:05 by ReimarBauer)