File: docutils-0.22.patch

package info (click to toggle)
sphinx-inline-tabs 2023.4.21-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 196 kB
  • sloc: python: 276; javascript: 25; makefile: 5
file content (25 lines) | stat: -rw-r--r-- 899 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Chris Mayo <aklhfex@gmail.com>
Date: Tue, 30 Sep 2025 19:31:25 +0100
Subject: Docutils 0.22 compatibility

backrefs attribute no longer used.

Origin: other, https://github.com/pradyunsg/sphinx-inline-tabs/pull/51
Last-Update: 2025-10-13
---
 src/sphinx_inline_tabs/_impl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sphinx_inline_tabs/_impl.py b/src/sphinx_inline_tabs/_impl.py
index 989ad4c..873678a 100644
--- a/src/sphinx_inline_tabs/_impl.py
+++ b/src/sphinx_inline_tabs/_impl.py
@@ -23,7 +23,7 @@ class _GeneralHTMLTagElement(nodes.Element, nodes.General):
         attributes.pop("classes")
         attributes.pop("names")
         attributes.pop("dupnames")
-        attributes.pop("backrefs")
+        attributes.pop("backrefs", None)
 
         text = translator.starttag(node, node.tagname, **attributes)
         translator.body.append(text.strip())