]> git.lyx.org Git - features.git/commit
Fix latex error when change-tracked deleted display math starts a new paragraph
authorEnrico Forestieri <forenr@lyx.org>
Mon, 17 Oct 2016 17:35:04 +0000 (19:35 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 17 Oct 2016 17:35:04 +0000 (19:35 +0200)
commitc1bfaa5c76ce99c222b5454c60b44d9c28543f5f
treedcf53d79d2d170854c6f2a2a17e80bdd4060ca99
parent120e84af3abc8e11a196f5ebb3dbbf4dc5ccda91
Fix latex error when change-tracked deleted display math starts a new paragraph

LaTeX refuses to break a line when it is empty. But we have to start
a new line here, otherwise the whole displayed equation would be
typeset as it were inline with previous content. The solution is to
put a zero-length space just before the line break. Moreover, this
is the right thing to do, as it simulates the extra space that is
normally added in this circumstance.
src/mathed/InsetMathHull.cpp