]> git.lyx.org Git - features.git/commit
Write braces around macros only when actually needed
authorEnrico Forestieri <forenr@lyx.org>
Thu, 25 Apr 2019 09:11:51 +0000 (11:11 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:27 +0000 (15:48 +0200)
commit9d2c70ab2aeb6ea9da5b94cc7b612d5be16e67f7
tree33e4c9d94c0fb3a40b094bbc6a69b74fb1ed0df5
parent2e190835cf95090d796205719b436a8464b2d9cf
Write braces around macros only when actually needed

When a macro with optionals appeared inside the optional argument of
another one, the onscreen display and latex output were wrong. This
issue was addressed at [e8f480e7/lyxgit] by enclosing in braces macros
with optional arguments. However, this was done even when the macro
with optionals was in a non-optional argument of another macro.
This commit limits the bracing to the cases where it is really needed
and allows to address some particular issues evidenced in #11552.
src/mathed/InsetMathMacro.cpp
src/mathed/MathStream.cpp
src/mathed/MathStream.h