]> git.lyx.org Git - features.git/commitdiff
[2.3 cand.] Fix import of custom float definitions
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 30 Jun 2019 09:13:20 +0000 (11:13 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 30 Jun 2019 09:13:20 +0000 (11:13 +0200)
Candidate for stable

src/tex2lyx/text.cpp

index 51b5e931e29dafc528b83611ac51e7ba0e717132..2b34adc55e9a253db3ffb05c0ea08191041bfbbd 100644 (file)
@@ -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;