commit 5afb71cb9bb1d9b10df2410b32f0a7720ad93182
Author: Juergen Spitzmueller <[email protected]>
Date: Sun Jun 30 11:13:20 2019 +0200
Fix import of custom float definitions
Candidate for stable
(cherry picked from commit bda3b6d07eb8ee199fbc80911e02d2adf87d14fc)
---
src/tex2lyx/text.cpp | 4 ++--
status.23x | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp
index 38b03d9..702293f 100644
--- a/src/tex2lyx/text.cpp
+++ b/src/tex2lyx/text.cpp
@@ -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;
diff --git a/status.23x b/status.23x
index e98a901..b5379d2 100644
--- a/status.23x
+++ b/status.23x
@@ -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