From bda3b6d07eb8ee199fbc80911e02d2adf87d14fc Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 30 Jun 2019 11:13:20 +0200 Subject: [PATCH] [2.3 cand.] Fix import of custom float definitions Candidate for stable --- src/tex2lyx/text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 51b5e931e2..2b34adc55e 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -3919,13 +3919,13 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, if (t.cs() == "listof") { p.skip_spaces(true); - string const name = p.get_token().cs(); + string const name = p.verbatim_item(); if (context.textclass.floats().typeExist(name)) { context.check_layout(os); begin_inset(os, "FloatList "); os << name << "\n"; end_inset(os); - p.get_token(); // swallow second arg + p.verbatim_item(); // swallow second arg } else output_ert_inset(os, "\\listof{" + name + "}", context); continue; -- 2.39.2