Surround fignum and caption with <span> tag

This commit is contained in:
tk0miya
2014-10-05 20:55:46 +09:00
parent 8ee53ddb06
commit 777218580a
3 changed files with 271 additions and 256 deletions

View File

@@ -54,8 +54,8 @@ def test_code_block_caption_html(app, status, warning):
app.builder.build(['caption'])
html = (app.outdir / 'caption.html').text(encoding='utf-8')
caption = (u'<div class="code-block-caption">'
u'caption <em>test</em> rb'
u'<a class="headerlink" href="#id1" '
u'<span class="caption-text">caption <em>test</em> rb'
u'</span><a class="headerlink" href="#id1" '
u'title="Permalink to this code">\xb6</a></div>')
assert caption in html
@@ -103,8 +103,8 @@ def test_literalinclude_caption_html(app, status, warning):
app.builder.build('index')
html = (app.outdir / 'caption.html').text(encoding='utf-8')
caption = (u'<div class="code-block-caption">'
u'caption <strong>test</strong> py'
u'<a class="headerlink" href="#id2" '
u'<span class="caption-text">caption <strong>test</strong> py'
u'</span><a class="headerlink" href="#id2" '
u'title="Permalink to this code">\xb6</a></div>')
assert caption in html