Add empty line after last \bibitem in bibliography (#12041)

(cherry picked from commit 4a13a29042)
This commit is contained in:
Juergen Spitzmueller 2020-12-03 07:46:39 +01:00
parent 85aaa1f58d
commit d45e103dab
2 changed files with 8 additions and 0 deletions

View File

@ -344,6 +344,11 @@ static void finishEnvironment(otexstream & os, OutputParams const & runparams,
popLanguageName();
}
}
if (data.style->latextype == LATEX_BIB_ENVIRONMENT)
// bibliography needs a blank line after
// each item for backref to function properly
// (see #12041)
os << '\n';
state->nest_level_ -= 1;
string const & name = data.style->latexname();
if (!name.empty())

View File

@ -47,6 +47,9 @@ What's new
- Fix Open Document (tex4ht) output converter.
- Fix output of bibliography environment to make backref work
(bug 12041).
* USER INTERFACE