mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-25 22:50:22 -05:00
Fix #7301: epub: duplicated node_ids are generated
This commit is contained in:
1 parent
7aa5584a47
commit
32b256dc2f
3 files changed
+13
-13
No files matched your search
@@ -321,10 +321,8 @@ def test_epub_anchor_id(app):
|
||||
|
||||
html = (app.outdir / 'index.xhtml').read_text()
|
||||
assert ('<p id="std-setting-STATICFILES_FINDERS">'
|
||||
'<span id="std-setting-STATICFILES_FINDERS"></span>'
|
||||
'blah blah blah</p>' in html)
|
||||
assert ('<span id="std-setting-STATICFILES_SECTION"></span>'
|
||||
'<span id="std-setting-STATICFILES_SECTION"></span>'
|
||||
'<h1>blah blah blah</h1>' in html)
|
||||
assert 'see <a class="reference internal" href="#std-setting-STATICFILES_FINDERS">' in html
|
||||
|
||||
|
||||
Reference in new issue
Block a user