]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Improve fractions bar
[lyx.git] / src / Paragraph.cpp
index 8afa475a74295e91e3a973221cea8578f561991e..05c10b5fa64f9ef8fbf3ef246a68a74c1952e2f7 100644 (file)
@@ -3147,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;
 }