]> git.lyx.org Git - features.git/commitdiff
Always use std::endl with lyxerr.
authorLars Gullik Bjønnes <larsbj@gullik.org>
Fri, 1 Aug 2003 21:18:49 +0000 (21:18 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Fri, 1 Aug 2003 21:18:49 +0000 (21:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7480 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C
src/ChangeLog

index 9d830f999413d20242268c35fee24606ad4f0017..fa1908d515833e2d87031aa93232c89e6b62676b 100644 (file)
@@ -188,10 +188,10 @@ bool BufferView::Pimpl::loadLyXFile(string const & filename, bool tolastfiles)
        // get absolute path of file and add ".lyx" to the filename if
        // necessary
        string s = FileSearch(string(), filename, "lyx");
-       
+
        bool const found = !s.empty();
 
-       if (!found) 
+       if (!found)
                s = filename;
 
        // file already open?
@@ -404,14 +404,14 @@ int BufferView::Pimpl::resizeCurrentBuffer()
                bv_->text->fullRebreak();
                update();
        } else {
-               lyxerr << "text not available!\n";
+               lyxerr << "text not available!" << endl;
                // See if we have a text in TextCache that fits
                // the new buffer_ with the correct width.
                bv_->text = textcache.findFit(buffer_, workarea().workWidth());
                if (bv_->text) {
-                       lyxerr << "text in cache!\n";
+                       lyxerr << "text in cache!" << endl;
                        if (lyxerr.debugging()) {
-                               lyxerr << "Found a LyXText that fits:\n";
+                               lyxerr << "Found a LyXText that fits:" << endl;
                                textcache.show(lyxerr, make_pair(buffer_, make_pair(workarea().workWidth(), bv_->text)));
                        }
                        // Set the owner of the newly found text
@@ -421,7 +421,7 @@ int BufferView::Pimpl::resizeCurrentBuffer()
 
                        resizeInsets(bv_);
                } else {
-                       lyxerr << "no text in cache!\n";
+                       lyxerr << "no text in cache!" << endl;
                        bv_->text = new LyXText(bv_);
                        resizeInsets(bv_);
                        bv_->text->init(bv_);
@@ -639,7 +639,7 @@ void BufferView::Pimpl::workAreaResize()
 
 void BufferView::Pimpl::update()
 {
-       lyxerr << "BufferView::update()\n";
+       lyxerr << "BufferView::update()" << endl;
        screen().redraw(*bv_);
 }
 
index 273e91fa7320d6b22b3ff4123081bc26d7db7254..40a5efaf8f194cb42076b8e90e9058d5634f7aa4 100644 (file)
@@ -1,3 +1,6 @@
+2003-08-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * BufferView_pimpl.C: _Always_ use std::endl with lyxerr
 
 2003-08-01  André Pönitz  <poenitz@gmx.net>
 
        * factory.C: submenu for Note/Comment/Greyedout
 
 2003-07-29  Alfredo Braunstein  <abraunst@libero.it>
-       
+
        * lyx_main.C (LyX):
        * BufferView_pimpl.C (loadLyXFile): fix to bugs 1287 and 1297 + ws
-       
+
 2003-07-29  Martin Vermeer  <martin.vermeer@hut.fi>
 
        * LaTeXFeatures.C: