This is maybe related to recent docutils/Sphinx changes?
In order to reproduce:
conf.py:
extensions = [
'sphinxcontrib.bibtex',
]
bibtex_bibfiles = ['references.bib']
index.rst:
Hello!
======
citation: :cite:`perez2011python`
.. bibliography::
This is a paragraph after the bibliography.
references.bib:
@article{perez2011python,
author = {Pérez, Fernando and Granger, Brian E. and Hunter, John D.},
title = {Python: An Ecosystem for Scientific Computing},
journal = {Computing in Science Engineering},
volume = 13,
number = 2,
pages = {13--21},
doi = {10.1109/MCSE.2010.119},
year = 2011,
}
With those 3 files in the current directory, run:
python3 -m sphinx . _build
This yields the following HTML:
...
<p>citation: <span id="id1">[<a class="reference internal" href="#id3" title="Fernando Pérez, Brian E. Granger, and John D. Hunter. Python: an ecosystem for scientific computing. Computing in Science Engineering, 13(2):13–21, 2011. doi:10.1109/MCSE.2010.119.">PGH11</a>]</span></p>
<div class="docutils container" id="id2">
<div class="citation" id="id3" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#id1">PGH11</a><span class="fn-bracket">]</span></span>
<p>Fernando Pérez, Brian E. Granger, and John D. Hunter. Python: an ecosystem for scientific computing. <em>Computing in Science Engineering</em>, 13(2):13–21, 2011. <a class="reference external" href="https://doi.org/10.1109/MCSE.2010.119">doi:10.1109/MCSE.2010.119</a>.</p>
</div>
</div>
</div>
<p>This is a paragraph after the bibliography.</p>
...
The problem seems to be that there are two opening <div ...> but three closing </div>.
Versions:
- sphinxcontrib.bibtex: develop branch
- Sphinx: 5.x branch, latest released version 5.1.1
- docutils: 0.19, 0.18
This is maybe related to recent
docutils/Sphinx changes?In order to reproduce:
conf.py:index.rst:references.bib:With those 3 files in the current directory, run:
This yields the following HTML:
The problem seems to be that there are two opening
<div ...>but three closing</div>.Versions: