Skip to content

Commit 614aa57

Browse files
committed
Remove dt/dl custom manipulation
1 parent b41353c commit 614aa57

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

hoverxref/extension.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,6 @@ def starttag(self, node, tagname, suffix='\n', empty=False, **attributes):
139139
attributes.update(node._hoverxref)
140140
logger.info('_hoverxref attributes: %s', attributes)
141141

142-
elif tagname == 'dt':
143-
if node.parent.get('ids') == node.get('ids'):
144-
# Remove duplicated ids from node that were added by
145-
# ``confval_parse_node`` to the parent
146-
node.replace_attr('ids', [])
147-
148142
return super().starttag(node, tagname, suffix, empty, **attributes)
149143

150144

tests/test_htmltag.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -148,33 +148,6 @@ def test_custom_object(app, status, warning):
148148
for chunk in chunks:
149149
assert chunk in content
150150

151-
path = app.outdir / 'configuration.html'
152-
assert path.exists() is True
153-
content = open(path).read()
154-
155-
chunks = [
156-
'\n'.join([
157-
# the id is in the ``dl`` tag and *not* in the ``dt``
158-
'<dl class="confval" id="confval-conf-title">',
159-
'<dt>',
160-
'<code class="descname">conf-title</code></dt>',
161-
'<dd><p>This is the description.</p>',
162-
'</dd></dl>',
163-
]),
164-
'\n'.join([
165-
# the id is in the ``dl`` tag and *not* in the ``dt``
166-
'<dl class="confval" id="confval-conf-another-title">',
167-
'<dt>',
168-
'<code class="descname">conf-another-title</code></dt>',
169-
'<dd><p>This is another description.</p>',
170-
'</dd></dl>',
171-
]),
172-
173-
]
174-
175-
for chunk in chunks:
176-
assert chunk in content
177-
178151

179152
@pytest.mark.sphinx(
180153
srcdir=pythondomainsrcdir,

0 commit comments

Comments
 (0)