Line numbers do not display when using nested ul/ol tags. For example:
<ol>
<blockcode>
// this displays correctly
</blockcode>
<li>
<blockcode>
// this displays correctly
</blockcode>
</li>
<li>
<ul>
<blockcode>
// this does not display correctly
</blockcode>
<li>
<blockcode>
// this does not display correctly
</blockcode>
</li>
</ul>
</li>
</ol>
Comments
Comment #1
soxofaan commentedI don't have time for the moment to look into his thoroughly,
but note that the line numbering in the GeSHi library is implemented with ordered lists (
<ol>).Also, the first and third blockcode in your code example are not proper HTML, as far as I know, so the result of that may depend on the used browser.
What do you get if you delete the first and third blockcode?
Comment #2
skaura commentedThanks for the quick response.
First, I am embarrassed by my lack of HTML validating code. However, even after tidying up/validating the code I still have line number rendering issues. Here is the block of code I am testing with:
In the above code #2 doesn't render line numbers. I played around with some other code and it seems that any code (blockcode, etc) nested inside of a UL tag will not render line numbers.
Thanks again for your help (and a wonderful module).
Comment #3
haggins commentedI have a similar problem:
If any container is enabled i.e "
Comment #4
nicholas.alipaz commentedThere is some css that is simply cutting off the line numbers. They are actually there. You just need to play with the (i think) padding of the li tags to get them to show. If I find time I will test it and tell you what to edit.
Comment #5
MarioTorresp commentedYou need only modify the following line in the file geshifilter.css:
In this way will show all the numbers from the list.
Comment #6
soxofaan commentedduplicate of #351291: Line numbers cut off in certain themes