mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
[2.3 cand.] Fix import of custom float definitions
Candidate for stable
This commit is contained in:
parent
63492d4efa
commit
bda3b6d07e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user