1. Georg Brandl
  2. sphinx-contrib
  3. Issues
Issue #39 new

sphinxcontrib-ansi: Problem w/ "set-color set-bold" sequences ...

jenisys
created an issue

sphinxcontrib-ansi does not process the following ANSI sequences correctly (set-color, set-bold):

CSI{color}mCSI1m

where:

  • CSI is the "Control Sequence Introducer": ESC[
  • {color} is placeholder for the color code, ala: 30..37 etc.

The color is reset in HTML output when set-bold is detected:

<span class="ansi-{color}"></span><span class="ansi-bold">...</span>

Expected:

<span class="ansi-{color}"><span class="ansi-bold">...</span></span>

or (what seems to be used currently with composite sequence):

<span class="ansi-{color} ansi-bold">...</span>

The whole thing works only when the composite schema is used:

CSI{color};1m

Comments (1)

  1. Log in to comment