diff src/ls-ascii-helper.cc @ 11586:12df7854fa7c

strip trailing whitespace from source files
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 17:24:59 -0500
parents fd0a3ac60b0e
children 72c96de7a403
line wrap: on
line diff
--- a/src/ls-ascii-helper.cc
+++ b/src/ls-ascii-helper.cc
@@ -43,7 +43,7 @@
 {
   if (! is)
     return;
-  
+
   while (is)
     {
       char c = is.peek ();
@@ -56,7 +56,7 @@
               // Eat the CR or LF character.
               char d;
               is.get (d);
-              
+
               // Make sure that for binary-mode opened ascii files
               // containing CRLF line endings we skip the LF after CR.
               if (c == '\r' && is.peek () == '\n')
@@ -65,7 +65,7 @@
                   is.get (d);
                 }
             }
-          
+
           // Newline was found, and read from stream if
           // keep_newline == true, so exit loop.
           break;
@@ -90,7 +90,7 @@
 {
   if (! is)
     return;
-  
+
   // Check whether IS currently points to newline character.
   char c = is.peek ();
 
@@ -102,7 +102,7 @@
           // Eat the CR or LF character.
           char d;
           is.get (d);
-          
+
           // Make sure that for binary-mode opened ascii files
           // containing CRLF line endings we skip the LF after CR.
           if (c == '\r' && is.peek () == '\n')
@@ -110,7 +110,7 @@
               // Yes, LF following CR, eat it.
               is.get (d);
           }
-          
+
           // Peek into next character.
           c = is.peek ();
 
@@ -130,9 +130,9 @@
 {
   if (! is)
     return std::string ();
-  
+
   std::ostringstream buf;
-  
+
   while (is)
     {
       char c = is.peek ();
@@ -145,7 +145,7 @@
               // Eat the CR or LF character.
               char d;
               is.get (d);
-              
+
               // Make sure that for binary-mode opened ascii files
               // containing CRLF line endings we skip the LF after
               // CR.
@@ -156,7 +156,7 @@
                   is.get (d);
                 }
             }
-          
+
           // Newline was found, and read from stream if
           // keep_newline == true, so exit loop.
           break;
@@ -170,6 +170,6 @@
           buf << d;
         }
     }
-  
+
   return buf.str ();
 }