diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2011-02-15 19:28:48 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2011-02-15 19:28:48 (GMT) |
commit | bb294c2b1e729a1af032e305df3422bf264b1c01 (patch) | |
tree | 66c2d1cee3cb2546518191f917069dc4232da65e /tools/lib | |
parent | 23a80ac554229f2f0163f1a92a02b921bb6c5e29 (diff) | |
download | hdf5-bb294c2b1e729a1af032e305df3422bf264b1c01.zip hdf5-bb294c2b1e729a1af032e305df3422bf264b1c01.tar.gz hdf5-bb294c2b1e729a1af032e305df3422bf264b1c01.tar.bz2 |
[svn-r20108] Purpose:
Fixing Bug 2092 - h5dump does not display index for a dataset
Description:
h5dump skip displaying array indices every certain number when the
array type dataset is relatively big. The certain number varies
according to the size of each array.
This checkin fix the skipping array indices problem. This fix also
correct indentation of the dataset data output.
Tested:
jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/h5tools.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c index 7aee7bc..e7ba801 100644 --- a/tools/lib/h5tools.c +++ b/tools/lib/h5tools.c @@ -887,8 +887,6 @@ h5tools_dump_simple_data(FILE *stream, const h5tool_format_t *info, hid_t contai */ curr_pos = ctx->sm_pos; - h5tools_simple_prefix(stream, info, ctx, curr_pos, 0); - for (i = 0; i < nelmts; i++, ctx->cur_elmt++, elmt_counter++) { void* memref = mem + i * size; if (region_output && H5Tequal(type, H5T_STD_REF_DSETREG)) { @@ -1081,14 +1079,11 @@ h5tools_render_element(FILE *stream, const h5tool_format_t *info, */ /* - * Added the info->skip_first because the dumper does not want - * this check to happen for the first line + * check for displaying prefix for each section */ - if ((!info->skip_first || local_elmt_counter) && - (ctx->cur_column + - strlen(section) + - strlen(OPT(info->elmt_suf2, " ")) + - strlen(OPT(info->line_suf, ""))) > ncols) + if ( (ctx->cur_column + strlen(section) + + strlen(OPT(info->elmt_suf2, " ")) + + strlen(OPT(info->line_suf, ""))) > ncols) ctx->need_prefix = 1; /* |