diff src/ls-mat-ascii.cc @ 8962:985792c9e0da

ls-mat-ascii.cc (get_mat_data_input_line): if looking at CR or LF, skip current line ending instead of skipping until the next
author John W. Eaton <jwe@octave.org>
date Thu, 12 Mar 2009 12:45:38 -0400
parents e7e928088e90
children c6edba80dfae
line wrap: on
line diff
--- a/src/ls-mat-ascii.cc	Thu Mar 12 23:20:33 2009 +0800
+++ b/src/ls-mat-ascii.cc	Thu Mar 12 12:45:38 2009 -0400
@@ -81,7 +81,8 @@
 	{
 	  if (c == '\n' || c == '\r')
 	    {
-	      skip_until_newline (is, false);
+	      is.putback (c);
+	      skip_preceeding_newline (is);
 	      break;
 	    }