diff src/ov-class.cc @ 13112:969ed305dde5

Remove all blank lines with "format compact" * pr-output.h (Vcompact_format): New global variable. * pr-output.cc (Vcompact_format): No longer a static variable. (pr_scale_header, pr_col_num_header, octave_print_internal): Use Vcompact_format to eliminate some newlines. (Vformat): Document this change. * ov-base.cc (octave_base_value::print_name_tag, octave_base_value::print_with_name): Use Vcompact_format variable to omit newlines. * ov-class.cc (octave_class::print_name_tag): Ditto. * ov-range.cc (octave_range::print_name_tag): Ditto. * ov-struct.cc (octave_scalar_struct::print_raw): Ditto.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Tue, 06 Sep 2011 21:15:16 -0500
parents 6f3f18957851
children 2a8dcb5b3a00
line wrap: on
line diff
--- a/src/ov-class.cc	Wed Sep 07 20:13:18 2011 +0200
+++ b/src/ov-class.cc	Tue Sep 06 21:15:16 2011 -0500
@@ -1020,7 +1020,8 @@
   indent (os);
   os << name << " =";
   newline (os);
-  newline (os);
+  if (! Vcompact_format)
+    newline (os);
 
   return retval;
 }