]> git.lyx.org Git - lyx.git/blobdiff - src/text_funcs.C
More 'standard conformant blurb' nonsense.
[lyx.git] / src / text_funcs.C
index dc3f572785b3a38531d57d109f89c1d46a405da3..2656f53fe7bbc92aae31fd9d0541e536823a330c 100644 (file)
@@ -25,6 +25,8 @@
 using lyx::pos_type;
 using lyx::word_location;
 
+using std::endl;
+
 
 bool transposeChars(LyXCursor const & cursor)
 {
@@ -66,8 +68,8 @@ void cursorLeftOneWord(LyXCursor & cursor, ParagraphList const & pars)
 
        while (pos &&
               (pit->isSeparator(pos - 1) ||
-               pit->isKomma(pos - 1) ||
-               pit->isNewline(pos - 1)) &&
+               pit->isKomma(pos - 1) ||
+               pit->isNewline(pos - 1)) &&
               !(pit->isHfill(pos - 1) ||
                 pit->isInset(pos - 1)))
                --pos;
@@ -152,7 +154,8 @@ void getWord(LyXCursor & from, LyXCursor & to, word_location const loc,
                cursorLeftOneWord(from, pars);
                break;
        case lyx::NEXT_WORD:
-               lyxerr << "LyXText::getWord: NEXT_WORD not implemented yet\n";
+               lyxerr << "LyXText::getWord: NEXT_WORD not implemented yet"
+                      << endl;
                break;
        case lyx::PARTIAL_WORD:
                break;