# HG changeset patch # User jwe # Date 1078951789 0 # Node ID 399e8681b7745f63cc26be0841d21f550aaa519c # Parent f9262b65c7d9186c660ca8f429868fbe81917466 [project @ 2004-03-10 20:49:48 by jwe] diff -r f9262b65c7d9 -r 399e8681b774 src/ChangeLog --- a/src/ChangeLog Wed Mar 10 06:57:03 2004 +0000 +++ b/src/ChangeLog Wed Mar 10 20:49:49 2004 +0000 @@ -1,3 +1,9 @@ +2004-03-10 John W. Eaton + + * pr-output.cc (init_format_state): Also set compact_format. + (pr_col_num_header): Print one newline character before column + headers for compact format. + 2004-03-09 John W. Eaton * version.h (OCTAVE_WWW_STATEMENT): New macro. diff -r f9262b65c7d9 -r 399e8681b774 src/pr-output.cc --- a/src/pr-output.cc Wed Mar 10 06:57:03 2004 +0000 +++ b/src/pr-output.cc Wed Mar 10 20:49:49 2004 +0000 @@ -1323,8 +1323,13 @@ { if (total_width > max_width && Vsplit_long_rows) { - if (col != 0 && ! compact_format) - os << "\n\n"; + if (col != 0) + { + if (compact_format) + os << "\n"; + else + os << "\n\n"; + } int num_cols = lim - col; @@ -2185,6 +2190,7 @@ bank_format = false; hex_format = 0; bit_format = 0; + compact_format = false; print_e = false; print_big_e = false; print_g = false; @@ -2470,14 +2476,17 @@ @end group\n\ @end example\n\ \n\ -@item hex\n\ +@itemx native-hex\n\ Print the hexadecimal representation numbers as they are stored in\n\ memory. For example, on a workstation which stores 8 byte real values\n\ in IEEE format with the least significant byte first, the value of\n\ @code{pi} when printed in @code{hex} format is @code{400921fb54442d18}.\n\ This format only works for numeric values.\n\ \n\ -@item bit\n\ +@item hex\n\ +The same as @code{native-hex}, but always print the most significant\n\ +byte first.\n\ +@item native-bit\n\ Print the bit representation of numbers as stored in memory.\n\ For example, the value of @code{pi} is\n\ \n\ @@ -2492,6 +2501,14 @@ printed in bit format on a workstation which stores 8 byte real values\n\ in IEEE format with the least significant byte first. This format only\n\ works for numeric types.\n\ +@item bit\n\ +The same as @code{native-bit}, but always print the most significant\n\ +bits first.\n\ +@item compact\n\ +Remove extra blank space around column number labels.\n\ +@item loose\n\ +Insert blank lines above and below column number labels (this is the\n\ +default).\n\ @end table\n\ \n\ By default, Octave will try to print numbers with at least 5 significant\n\