From 5bf7f938a4a951b49bff9828bd6d17ee8da7e317 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 11 Nov 2022 08:12:14 +0100 Subject: [PATCH] Fix tex2lyx corner case (#12537) --- src/tex2lyx/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index e11d0a5bec..2ee2ada56a 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