X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftext.cpp;h=f49012a55941e2760996d1f3ee760a593ce798e6;hb=e43dc9d38cb8919c4acd03bd9cbb1016e980661b;hp=e1f9c2412f4062b60dce65deda1f24783064b12d;hpb=e7aa8ce683718fc217ceffca647a94e202fc7e91;p=lyx.git diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index e1f9c2412f..f49012a559 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -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") {