]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/text-db.cc
release: 0.1.9
[lilypond.git] / flower / text-db.cc
index 3624d46ff72dc9ca85cff093267712cc1d4a1531..fef860eb31cb77de92c87d64b973130d60d0fab9 100644 (file)
@@ -2,30 +2,33 @@
 bool
 Text_db::eof()
 {
-    Data_file::gobble_leading_white();
-    return  Data_file::eof();
+  Data_file::gobble_leading_white();
+  return  Data_file::eof();
 }
 
 void
 Text_db::gobble_leading_white()
 {
-    while (1) {
+  while (1) 
+    {
        Data_file::gobble_leading_white();
        if (eof())
            return ;
        char c;
-       if  ((c = data_get()) !='\n'){
+       if  ((c = data_get()) !='\n')
+         {
            data_unget (c);
            return ;
        }       
-    }  
+  }    
 }
 
 
 Text_record
 Text_db::get_record() 
 {
-   while (1) {
+   while (1) 
+   {
        String s;
        Array<String> fields;
        assert (!eof());
@@ -34,12 +37,12 @@ Text_db::get_record()
            {
            fields.push (s);    
            gobble_white();
-           }
+             }
             
 
        if (get_line() != "")
            assert (false);
-      
+    
        assert (fields.size());
        return Text_record (fields, get_name(), line ());
    }