]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/text.cpp
* Added conversion of latex macros with optional parameters
[lyx.git] / src / tex2lyx / text.cpp
index e1f9c2412f4062b60dce65deda1f24783064b12d..f49012a55941e2760996d1f3ee760a593ce798e6 100644 (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") {