mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* Added conversion of latex macros with optional parameters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21330 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
dbbf47ab14
commit
e43dc9d38c
@ -2317,14 +2317,10 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
||||
opt1 + opt2 +
|
||||
'{' + p.verbatim_item() + '}';
|
||||
|
||||
if (opt2.empty()) {
|
||||
context.check_layout(os);
|
||||
begin_inset(os, "FormulaMacro");
|
||||
os << "\n" << ert;
|
||||
end_inset(os);
|
||||
} else
|
||||
// we cannot handle optional argument, so only output ERT
|
||||
handle_ert(os, ert, context);
|
||||
context.check_layout(os);
|
||||
begin_inset(os, "FormulaMacro");
|
||||
os << "\n" << ert;
|
||||
end_inset(os);
|
||||
}
|
||||
|
||||
else if (t.cs() == "vspace") {
|
||||
|
Loading…
Reference in New Issue
Block a user