Mercurial > hg > octave-lojdl
changeset 1202:1f5ff647c7ab
[project @ 1995-04-01 00:20:39 by jwe]
author | jwe |
---|---|
date | Sat, 01 Apr 1995 00:20:39 +0000 |
parents | 97c541091d3b |
children | da56532815ee |
files | src/tc-rep.cc |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tc-rep.cc +++ b/src/tc-rep.cc @@ -1784,9 +1784,9 @@ unwind_protect_int (structure_indent_level); unwind_protect_int (user_pref.struct_levels_to_print); - if (user_pref.struct_levels_to_print > 0) + if (user_pref.struct_levels_to_print-- > 0) { - user_pref.struct_levels_to_print--; + output_buf << "{\n"; increment_structure_indent_level (); @@ -1798,9 +1798,7 @@ output_buf.form ("%*s%s = ", structure_indent_level, "", key); - if (print_as_structure (val)) - output_buf << "{\n"; - else if (! print_as_scalar (val)) + if (! (print_as_scalar (val) || print_as_structure (val))) output_buf << "\n"; val.print (output_buf);