commit 112616a97ba1fddd6555d9303521714fbdb811bd
Author: Enrico Forestieri <[email protected]>
Date:   Sat May 18 11:36:07 2019 +0200

    Fix bug #10499
    
    The array environment has to be explicitly parsed in math mode.
    
    (cherry picked from commit 1a286c7910d8856c55a5266e73a9b6e87a8b5b98)
---
 src/mathed/MathParser.cpp |    2 +-
 status.23x                |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp
index fbd08c3..c5df946 100644
--- a/src/mathed/MathParser.cpp
+++ b/src/mathed/MathParser.cpp
@@ -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") {
diff --git a/status.23x b/status.23x
index 8067c74..852830a 100644
--- a/status.23x
+++ b/status.23x
@@ -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
 

Reply via email to