]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathParser.cpp
tex2lyx: support for \item with opt arg in itemize environment
[lyx.git] / src / mathed / MathParser.cpp
index 2933c09d716b94f92ead5d2d7c9b253d2f2dabdd..21621a3e25c4088953c06dbb11b418d980cd8252 100644 (file)
@@ -2084,7 +2084,8 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
                                        //}
                                        for (InsetMath::idx_type i = start; i < at->nargs(); ++i) {
                                                parse(at.nucleus()->cell(i), FLAG_ITEM, m);
-                                               skipSpaces();
+                                               if (mode == InsetMath::MATH_MODE)
+                                                       skipSpaces();
                                        }
                                        cell->push_back(at);
                                }