]> git.lyx.org Git - features.git/commitdiff
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>
Fri, 5 Jul 2019 16:47:07 +0000 (18:47 +0200)
Candidate for stable

(cherry picked from commit bda3b6d07eb8ee199fbc80911e02d2adf87d14fc)

src/tex2lyx/text.cpp
status.23x

index 38b03d91793f29dbab834e819492a968837f3e64..702293f6f9192be12084526e5dbccff046095207 100644 (file)
@@ -3741,13 +3741,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;
index e98a9019fe82f0ad957d841a5e4b6c770981e4a7..b5379d268a5e8576e61c03f049adeb9949a2159a 100644 (file)
@@ -95,6 +95,8 @@ Avoid using text mode for unicode symbols representable in math mode (bug 9616).
 
 - Prevent multiplication of preamble code on (re-)import (bug 8229).
 
+- Fix import of custom float definitions.
+
 
 * LYXHTML