You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing backslashes in documentation for 3.8 and 3.9 #86988
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/JulienPalard'closed_at=<Date2021-01-05.08:35:48.965>created_at=<Date2021-01-04.13:03:42.461>labels= ['3.8', '3.9', 'docs']
title='Missing backslashes in documentation for 3.8 and 3.9'updated_at=<Date2021-01-05.08:35:48.965>user='https://github.com/JulienPalard'
I edited the revert to keep only relevant parts, as only a few bits of the commit were causing troubles.
Issue is: Sphinx 2 and Sphinx 3 have incompatible handling of backslahes, fixing them for Sphinx 3 in Python 3.10, then backporting to 3.8 and 3.9 which use Sphinx 2 caused an issue: \n for example are rendered as n, easy to notice in the documentaion of print:
As migration to Sphinx 3 was hard (done for Python 3.10 documentation), it won't be backported to 3.8 and 3.9, which will still be built using Sphinx 2, so some bits had to be reverted for the doc to display the backslash of \n.
Activity
JulienPalard commentedon Jan 4, 2021
This is just to track the issue, initially reported here:
python/python-docs-theme#63
Then discussed here:
#23827 (comment)
Then reverted:
I edited the revert to keep only relevant parts, as only a few bits of the commit were causing troubles.
Issue is: Sphinx 2 and Sphinx 3 have incompatible handling of backslahes, fixing them for Sphinx 3 in Python 3.10, then backporting to 3.8 and 3.9 which use Sphinx 2 caused an issue:
\nfor example are rendered asn, easy to notice in the documentaion of print:As migration to Sphinx 3 was hard (done for Python 3.10 documentation), it won't be backported to 3.8 and 3.9, which will still be built using Sphinx 2, so some bits had to be reverted for the doc to display the backslash of
\n.