Browse Source

Fix silly span bug

Something seems to have changed between ``pygments==2.1.0`` and
``pygments==2.1.1`` causing an extra ``<span></span>`` to be generated
by the Jinja2 and Markdown code block tests. This commit updates the
tests to reflect that change, but a more permanent solution should be
developed if possible.
main
Jon Banafato 8 years ago
parent
commit
b5733d14f3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tests/test_jinja2template.py

+ 2
- 2
tests/test_jinja2template.py View File

@@ -208,7 +208,7 @@ See `Example`_
expected = ("""
<div class="document" id="code">
<h1 class="title">Code</h1>
<div class="highlight"><pre><span class="k">def</span> """
<div class="highlight"><pre><span></span><span class="k">def</span> """
"""<span class="nf">add</span><span class="p">(</span>"""
"""<span class="n">a"""
"""</span><span class="p">,</span> <span class="n">b</span>"""
@@ -264,7 +264,7 @@ See [Example][]

expected = ("""
<h1>Code</h1>
<div class="codehilite"><pre><span class="k">def</span> """
<div class="codehilite"><pre><span></span><span class="k">def</span> """
"""<span class="nf">add</span><span class="p">(</span>"""
"""<span class="n">a</span><span class="p">,</span> """
"""<span class="n">b</span><span class="p">):</span>


Loading…
Cancel
Save