]> git.lyx.org Git - features.git/commit
Fix unwanted curly braces in formula (bug #8679)
authorGeorg Baum <baum@lyx.org>
Thu, 12 Feb 2015 20:36:01 +0000 (21:36 +0100)
committerGeorg Baum <baum@lyx.org>
Thu, 12 Feb 2015 20:36:01 +0000 (21:36 +0100)
commitedc1ce40688d95402cfde1217bb6a51cae87fa4d
treed888a83fffd66594b41bc1a2ae70273daf8fe404
parent15d1349847c68b2f60a487eb5b91e1f3d7a0573a
Fix unwanted curly braces in formula (bug #8679)

There was an unsymmetry between reading and writing: InsetMathGrid::eolString()
adds curly braces if the first cell of the next line starts with [ to prevent
misparsing as optional argument of \\. These braces were not removed on reading.

Thanks to Enrico, who noticed that the previous fix did not take into account
the case of nonempty length argument + the next line beginning with [.
Now the parsing is exactly the inverse of InsetMathGrid::eolString().
src/mathed/MathParser.cpp
status.21x