Menu

#244 Wrong subscript/superscript order with `rst2html --math-output=HTML`

None
closed-fixed
nobody
math (1) html (1)
2021-10-31
2013-11-21
No

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

2 Attachments

Discussion

  • spider-mario

    spider-mario - 2013-11-21

    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.

     
  • spider-mario

    spider-mario - 2013-11-21

    Manually changing the order of <sup>···</sup> and <sub>···</sub> in the HTML output appears to fix the rendering of the formula.

     
  • Günter Milde

    Günter Milde - 2015-03-11
    • Group: sandbox --> None
     
  • Günter Milde

    Günter Milde - 2021-05-02
    • status: open --> open-fixed
    • Group: -->
     
  • Günter Milde

    Günter Milde - 2021-05-02

    Fixed in revision 8717. Thank you for the report.

     
  • Günter Milde

    Günter Milde - 2021-10-31
    • status: open-fixed --> closed-fixed
     
  • Günter Milde

    Günter Milde - 2021-10-31

    Fixed in Docutils 0.18. Thanks again for the report.

     

Log in to post a comment.