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

This commit is contained in:
Juergen Spitzmueller 2020-12-03 07:46:39 +01:00
parent a839b40358
commit 4a13a29042

View File

@ -349,6 +349,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())