mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Fix import of custom float definitions
Candidate for stable
(cherry picked from commit bda3b6d07e
)
This commit is contained in:
parent
b89749ae1d
commit
5afb71cb9b
@ -3741,13 +3741,13 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
|||||||
|
|
||||||
if (t.cs() == "listof") {
|
if (t.cs() == "listof") {
|
||||||
p.skip_spaces(true);
|
p.skip_spaces(true);
|
||||||
string const name = p.get_token().cs();
|
string const name = p.verbatim_item();
|
||||||
if (context.textclass.floats().typeExist(name)) {
|
if (context.textclass.floats().typeExist(name)) {
|
||||||
context.check_layout(os);
|
context.check_layout(os);
|
||||||
begin_inset(os, "FloatList ");
|
begin_inset(os, "FloatList ");
|
||||||
os << name << "\n";
|
os << name << "\n";
|
||||||
end_inset(os);
|
end_inset(os);
|
||||||
p.get_token(); // swallow second arg
|
p.verbatim_item(); // swallow second arg
|
||||||
} else
|
} else
|
||||||
output_ert_inset(os, "\\listof{" + name + "}", context);
|
output_ert_inset(os, "\\listof{" + name + "}", context);
|
||||||
continue;
|
continue;
|
||||||
|
@ -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).
|
- Prevent multiplication of preamble code on (re-)import (bug 8229).
|
||||||
|
|
||||||
|
- Fix import of custom float definitions.
|
||||||
|
|
||||||
|
|
||||||
* LYXHTML
|
* LYXHTML
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user