]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/simple-spacer.cc
2003 -> 2004
[lilypond.git] / lily / simple-spacer.cc
index 893b8cb0fd7e25c2f4ebccfb44dcb50cf81b614a..91aa56a2b644a70b56760c2f5677c16d005e038c 100644 (file)
@@ -3,7 +3,7 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1999--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 
   TODO:
   - add support for different stretch/shrink constants?
@@ -342,6 +342,10 @@ Simple_spacer::solve (Column_x_positions *positions, bool ragged)
       */
     }
 
+  /*
+    For raggedright, we must have a measure of music density: this is
+    to prevent lots of short lines (which all have force = 0).
+    */
   if (ragged && line_len_ > 0)
     {
       Real len = positions->config_.top ();
@@ -351,10 +355,8 @@ Simple_spacer::solve (Column_x_positions *positions, bool ragged)
 
   positions->cols_ = spaced_cols_;
   positions->loose_cols_ = loose_cols_;
-  
   positions->satisfies_constraints_b_ = (line_len_ < 0) || active_b ();
 
-
   /*
     Check if breaking constraints are met.
    */