diff src/ov-cell.cc @ 11474:8a40037533e2

struct printing changes
author John W. Eaton <jwe@octave.org>
date Mon, 10 Jan 2011 14:05:12 -0500
parents 5eb10763069f
children fd0a3ac60b0e
line wrap: on
line diff
--- a/src/ov-cell.cc	Sun Jan 09 21:45:12 2011 -0800
+++ b/src/ov-cell.cc	Mon Jan 10 14:05:12 2011 -0500
@@ -678,7 +678,7 @@
 bool
 octave_cell::print_as_scalar (void) const
 {
-  return (ndims () > 2 || numel () == 0);
+  return true;
 }
 
 void
@@ -699,6 +699,7 @@
 
       if (nr > 0 && nc > 0)
         {
+          newline (os);
           indent (os);
           os << "{";
           newline (os);