[LyX/master] Fix tex2lyx corner case (#12537)

Juergen Spitzmueller spitz at lyx.org
Fri Nov 11 06:19:03 UTC 2022


commit 5bf7f938a4a951b49bff9828bd6d17ee8da7e317
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Nov 11 08:12:14 2022 +0100

    Fix tex2lyx corner case (#12537)
---
 src/tex2lyx/text.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp
index e11d0a5..2ee2ada 100644
--- a/src/tex2lyx/text.cpp
+++ b/src/tex2lyx/text.cpp
@@ -3742,7 +3742,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
 			continue;
 		}
 
-		if (t.cs() == "appendix") {
+		if (t.cs() == "appendix" && !context.in_list_preamble) {
 			context.add_par_extra_stuff("\\start_of_appendix\n");
 			// We need to start a new paragraph. Otherwise the
 			// appendix in 'bla\appendix\chapter{' would start


More information about the lyx-cvs mailing list