Image shows it:

there is an extra line above the final one of the procedure, and the html source (in _build/html/_modules/foo.html) looks like this
<div class="viewcode-block" id="pgcd"><a class="viewcode-back" href="../index.html#foo.pgcd">[docs]</a><span class="k">def</span> <span class="nf">pgcd</span><span class="p">(</span><span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">):</span>
<span class="sd">"""Calcule le PGCD par l'algorithme d'Euclide.</span>
<span class="sd"> """</span>
<span class="n">a</span><span class="p">,</span> <span class="n">b</span> <span class="o">=</span> <span class="nb">abs</span><span class="p">(</span><span class="n">a</span><span class="p">),</span> <span class="nb">abs</span><span class="p">(</span><span class="n">b</span><span class="p">)</span>
<span class="k">while</span> <span class="n">b</span> <span class="o">></span> <span class="mi">0</span><span class="p">:</span>
<span class="n">a</span><span class="p">,</span> <span class="n">b</span> <span class="o">=</span> <span class="n">b</span><span class="p">,</span> <span class="n">a</span> <span class="o">%</span> <span class="n">b</span></div>
<span class="k">return</span> <span class="n">a</span>
the closing </div> is mis-placed (not at end of last line but at end of previous one).
This does not happen with Sphinx 1.6.6 but happens with Sphinx 1.7.0 and 1.7.1
I am attaching
misplaceddiv.zip
which one needs to compile with make html.
Environment info
- OS: Mac
- Running Sphinx v1.8.0+
- Sphinx version: 1.8.0+
- Python version: 3.6.4 (CPython)
- Docutils version: 0.14
- Jinja2 version: 2.10
Also tested with 1.7.0 and 1.7.1. No problem with 1.6.6
Image shows it:
there is an extra line above the final one of the procedure, and the html source (in
_build/html/_modules/foo.html) looks like thisthe closing
</div>is mis-placed (not at end of last line but at end of previous one).This does not happen with Sphinx 1.6.6 but happens with Sphinx 1.7.0 and 1.7.1
I am attaching
misplaceddiv.zip
which one needs to compile with
make html.Environment info
Also tested with 1.7.0 and 1.7.1. No problem with 1.6.6