In math mode, when there are both a subscript and a superscript, the ^
and _
symbols are not taken into account by the HTML writer to decide which is which: only their order matters, as illustrated by the attached file.
Environment in which the problem was encountered:
- Operating system: Arch Linux
- Python version: 3.3.2
- Docutils version: 0.11
Oops, my bad, it’s
--math-output='HTML math.css'
(the current default value) that causes the problem, not just--math-output=HTML
without the stylesheet.Manually changing the order of
<sup>···</sup>
and<sub>···</sub>
in the HTML output appears to fix the rendering of the formula.Fixed in revision 8717. Thank you for the report.
Fixed in Docutils 0.18. Thanks again for the report.