]> git.lyx.org Git - features.git/commitdiff
Fix tex2lyx corner case (#12537)
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 11 Nov 2022 07:12:14 +0000 (08:12 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 11 Nov 2022 07:12:14 +0000 (08:12 +0100)
src/tex2lyx/text.cpp

index e11d0a5becbe9e7f9675dcf6eb68dffd080ea01c..2ee2ada56acfa00fbbb8b30f84cc83d7f6391f17 100644 (file)
@@ -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