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
This PR updates the project to support docutils 0.22 by adapting to
breaking changes in how docutils serializes boolean attributes and line
numbers. The changes ensure test compatibility across docutils versions
0.20-0.22.
**Changes:**
- Updated docutils version constraint from `<0.22` to `<0.23`
- Introduced `normalize_doctree_xml()` function to handle cross-version
XML serialization differences
- Updated test fixtures to reflect docutils 0.22's line numbering
changes
Note, one issue was found and raised upstream:
sphinx-doc/sphinx#14261
literal_block.line=1# TODO don;t think this should be 1?
455
455
self.add_name(literal_block)
456
456
if"number-lines"inself.options:
457
-
try:
458
-
startline=int(self.options["number-lines"] or1)
459
-
exceptValueErroraserr:
460
-
raiseDirectiveError(
461
-
3, ":number-lines: with non-integer start value"
462
-
) fromerr
457
+
# note starting in docutils 0.22 this option is now an integer instead of a string, see: https://github.com/live-clones/docutils/commit/f39ac1413e56a330c8fea6e0d080fed0ff2b8483
0 commit comments