]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Cmake build: Prepare for hardening use of external programs
[lyx.git] / src / Paragraph.cpp
index aea3234a19ced0765cffa75e1597867e97756304..05c10b5fa64f9ef8fbf3ef246a68a74c1952e2f7 100644 (file)
@@ -2389,6 +2389,7 @@ void Paragraph::latex(BufferParams const & bparams,
                                                            runparams);
                }
 
+               runparams.wasDisplayMath = runparams.inDisplayMath;
                runparams.inDisplayMath = false;
                bool deleted_display_math = false;
 
@@ -3146,6 +3147,11 @@ bool Paragraph::isHfill(pos_type pos) const
 
 bool Paragraph::isNewline(pos_type pos) const
 {
+       // U+2028 LINE SEPARATOR
+       // U+2029 PARAGRAPH SEPARATOR
+       char_type const c = d->text_[pos];
+       if (c == 0x2028 || c == 0x2029)
+               return true;
        Inset const * inset = getInset(pos);
        return inset && inset->lyxCode() == NEWLINE_CODE;
 }