summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_str.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-03-04 13:34:18 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-03-04 13:34:18 (GMT)
commite89007f62146abdf81edc6a7ab17bf08c654bd88 (patch)
treea3c3c77b90e223a8c7ab28364e68ea1608294f8c /tools/lib/h5tools_str.c
parent070556eca7943dd090e3b11f79382cc76a466646 (diff)
downloadhdf5-e89007f62146abdf81edc6a7ab17bf08c654bd88.zip
hdf5-e89007f62146abdf81edc6a7ab17bf08c654bd88.tar.gz
hdf5-e89007f62146abdf81edc6a7ab17bf08c654bd88.tar.bz2
[svn-r20182] BZ2048: Add -E --enable-error-stack option to h5dump.
Brought from trunk after one week of tests. Tested: local linux
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r--tools/lib/h5tools_str.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 95b1f5b..fa60389 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -1065,6 +1065,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
if (i)
h5tools_str_append(str, "%s", OPT(info->arr_sep, "," OPTIONAL_LINE_BREAK));
+ fprintf(stderr, "lb: %d, i: %d, mod: %d, dim: %d, ndim: %d\n", info->arr_linebreak, i, i % dims[ndims - 1], dims[ndims - 1], ndims);
if (info->arr_linebreak && i && i % dims[ndims - 1] == 0) {
int x;
@@ -1078,7 +1079,8 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
for (x = 0; x < ctx->indent_level + 1; x++)
h5tools_str_append(str, "%s", OPT(info->line_indent, ""));
} /* end if */
- else if (i && info->arr_sep)
+ else
+ if (i && info->arr_sep)
h5tools_str_append(str, " ");
ctx->indent_level++;