Fix #7301: epub: duplicated node_ids are generated

This commit is contained in:
Takeshi KOMIYA committed 2020-03-29 23:55:56 +09:00
1 parent 7aa5584a47
commit 32b256dc2f
3 files changed
+13 -13

No files matched your search

-2
View File
@@ -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