]> git.lyx.org Git - features.git/commitdiff
Fix bug #10499
authorEnrico Forestieri <forenr@lyx.org>
Sat, 18 May 2019 09:36:07 +0000 (11:36 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 25 Jun 2019 19:33:29 +0000 (21:33 +0200)
The array environment has to be explicitly parsed in math mode.

(cherry picked from commit 1a286c7910d8856c55a5266e73a9b6e87a8b5b98)

src/mathed/MathParser.cpp
status.23x

index fbd08c3931dd9b61fe02a531a6e46dba115e58d7..c5df946e6f549ccd62c18c666a5f42ea15bbd336 100644 (file)
@@ -1606,7 +1606,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
                                docstring const halign = parse_verbatim_item();
                                cell->push_back(MathAtom(new InsetMathArray(buf, name,
                                        InsetMathGrid::guessColumns(halign), 1, (char)valign[0], halign)));
-                               parse2(cell->back(), FLAG_END, mode, false);
+                               parse2(cell->back(), FLAG_END, InsetMath::MATH_MODE, false);
                        }
 
                        else if (name == "tabular") {
index 8067c7484965d9e057be1b82385fb49ee6795357..852830ad21d950498d8a43e806caf5090dbe0894 100644 (file)
@@ -48,6 +48,8 @@ The "Rows & Columns" optional submenu has been added to the math context menu.
 
 - Fix toprule with booktabs/longtable and captions (bug 11589).
 
+- Avoid adding spaces when parsing an array in a macro template (bug 10499).
+
 
 * USER INTERFACE