commit d45e103dab9df3274e36ececcd371d8b74819367
Author: Juergen Spitzmueller <[email protected]>
Date: Thu Dec 3 07:46:39 2020 +0100
Add empty line after last \bibitem in bibliography (#12041)
(cherry picked from commit 4a13a29042a05dfeba57ea4d2299d96d6ac7d30e)
---
src/output_latex.cpp | 5 +++++
status.23x | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/output_latex.cpp b/src/output_latex.cpp
index 3838ba3..eae5b3c 100644
--- a/src/output_latex.cpp
+++ b/src/output_latex.cpp
@@ -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())
diff --git a/status.23x b/status.23x
index 4b13577..79f2c94 100644
--- a/status.23x
+++ b/status.23x
@@ -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
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs