X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FChanges.cpp;h=6e3bf0fff754a7bf24548074f33fe9f4a67d34b8;hb=71a57e0f4df9d2b860ec2d060cc30043206c335d;hp=5f8e3b21bf2af4dab62099d7a4c92f6dceaf5c8f;hpb=bd21aa99d244cbfe532c4d970197a940355828dd;p=lyx.git diff --git a/src/Changes.cpp b/src/Changes.cpp index 5f8e3b21bf..6e3bf0fff7 100644 --- a/src/Changes.cpp +++ b/src/Changes.cpp @@ -428,7 +428,7 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams, // signature needed by \lyxsout to correctly strike out display math if (change.type == Change::DELETED && runparams.inDisplayMath && !dvipost) { - if (os.lastChar() == '\n') + if (os.blankLine()) str += from_ascii("\\\\\\noindent\n"); else str += from_ascii("\\\\\\\\\n");