Fix tex2lyx corner case (#12537)

This commit is contained in:
Juergen Spitzmueller 2022-11-11 08:12:14 +01:00
parent d35753a6d0
commit 5bf7f938a4

View 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