]> git.lyx.org Git - lyx.git/commitdiff
* Added conversion of latex macros with optional parameters
authorStefan Schimanski <sts@lyx.org>
Thu, 1 Nov 2007 11:15:05 +0000 (11:15 +0000)
committerStefan Schimanski <sts@lyx.org>
Thu, 1 Nov 2007 11:15:05 +0000 (11:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21330 a592a061-630c-0410-9148-cb99ea01b6c8

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