Author: gouroulapin
Description:
How to reproduce this bug:
- I used a clean install of MediaWiki 1.6.6
- I set "$wgMaxTocLevel = 3;" in LocalSettings.php
- I create a test page:
header 1
header 2
header 2.1
header 2.2.1
header 3
header 3.1
header 3.2
- I click on Preview, or Save (the result is the same)
- The TOC is not rendered as it should:
Roughly, there are too much "</ul></li>" generated.
It probably comes from improper calls to function tocUnindent()
(includes/Linker.php) from parser (includes/Parser.php).
This was my first bug report, I hope it is accurate.
Thanks for your excellent work,
Best regards.
Version: 1.6.x
Severity: minor