]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/paper-stream.cc
release: 1.1.7
[lilypond.git] / lily / paper-stream.cc
index c878f4b4d0bbbe80bf16e75dcdee2920b5defc10..91ff01041ce11a03e9d5042efad0a4fac576f937 100644 (file)
@@ -7,9 +7,7 @@
 */
 
 #include <fstream.h>
-#include <time.h>
 
-//#include "tex.hh"
 #include "main.hh"
 #include "paper-stream.hh"
 #include "debug.hh"
@@ -28,7 +26,6 @@ Paper_stream::Paper_stream (String filename)
   nest_level = 0;
   line_len_i_ = 0;
   outputting_comment=false;
-  //  header ();
 }
 
 Paper_stream::~Paper_stream ()
@@ -79,6 +76,11 @@ Paper_stream::operator << (Scalar s)
                    delete os;  // we want to see the remains.
                    assert (nest_level>=0);
                  }
+
+               /* don't break line if not nested; very ugly for ps */
+               if (nest_level == 0)
+                 break;
+
                /* FALLTHROUGH */
 
            case '\n':
@@ -95,6 +97,8 @@ Paper_stream::operator << (Scalar s)
                break;
              }
     }
+  //urg, for debugging only!!
+  *os << flush;
   return *this;
 }