comparison src/ov-struct.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 7a5aacf65f81
children 5cd1193ac1c4
comparison
equal deleted inserted replaced
13111:ebb42fb2da04 13112:969ed305dde5
1333 1333
1334 bool print_fieldnames_only = max_depth_reached; 1334 bool print_fieldnames_only = max_depth_reached;
1335 1335
1336 increment_indent_level (); 1336 increment_indent_level ();
1337 1337
1338 newline (os); 1338 if (! Vcompact_format)
1339 newline (os);
1340
1339 indent (os); 1341 indent (os);
1340 os << "scalar structure containing the fields:"; 1342 os << "scalar structure containing the fields:";
1341 newline (os); 1343 newline (os);
1342 newline (os); 1344 if (! Vcompact_format)
1345 newline (os);
1343 1346
1344 increment_indent_level (); 1347 increment_indent_level ();
1345 1348
1346 string_vector key_list = map.fieldnames (); 1349 string_vector key_list = map.fieldnames ();
1347 1350