Commit f20e3b8
utils: coloransi: Escape Unicode U0001 and U0002 non-printable characters.
Fixes #13637.
These Unicode characters, would cause problems when processed by LaTeX
to generate the info or PDF documentation targets.
* IPython/utils/coloransi.py (InputTermColors): Escape the backslashes
in \001 and \002 so that they are shown as literals '\001' and '\002'
strings in the Sphinx-generated documentation rather than as
non-printable Unicode characters.1 parent 71d665c commit f20e3b8
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments