* 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:
Stefan Schimanski 2007-11-01 11:15:05 +00:00
parent dbbf47ab14
commit e43dc9d38c

View File

@ -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") {