[LyX/2.3.x] Fix bug #12148

Enrico Forestieri forenr at lyx.org
Fri Feb 19 21:37:49 UTC 2021


commit c1ef23e54e190c11692e75194628649ada2b3909
Author: Enrico Forestieri <forenr at lyx.org>
Date:   Fri Feb 19 02:19:06 2021 +0100

    Fix bug #12148
    
    (cherry picked from commit 7114de5175e0d34275b39bb998dd65186d1d219f)
---
 src/Paragraph.cpp |    2 +-
 status.23x        |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 5f8439d..5e582ee 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -2498,7 +2498,7 @@ void Paragraph::latex(BufferParams const & bparams,
 						runparams);
 				runningChange = Change(Change::UNCHANGED);
 
-				os << "}] ";
+				os << (isEnvSeparator(i) ? "}]~" : "}] ");
 				column +=3;
 			}
 			// For InTitle commands, we have already opened a group
diff --git a/status.23x b/status.23x
index 0a9bbe4..9acc488 100644
--- a/status.23x
+++ b/status.23x
@@ -56,6 +56,10 @@ What's new
 
 - Fix tables in title.
 
+- Fix issue causing the coalesce of an empty description list item and an
+  immediately following nested itemize environment when loading documents
+  created with version 2.1 or earlier (bug 12148).
+
 
 * USER INTERFACE
 


More information about the lyx-cvs mailing list