diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2015-04-13 20:15:00 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2015-04-13 20:15:00 (GMT) |
commit | 26e709edc65f279cb4a9fbd4e31a9531ce62a8b7 (patch) | |
tree | 14da10a605fa991fe6632d4e871dd661b7c2416f /tools/lib/h5tools_str.c | |
parent | 6a27582a4488d4d18a0b6cd584b8950ab02b81a7 (diff) | |
download | hdf5-26e709edc65f279cb4a9fbd4e31a9531ce62a8b7.zip hdf5-26e709edc65f279cb4a9fbd4e31a9531ce62a8b7.tar.gz hdf5-26e709edc65f279cb4a9fbd4e31a9531ce62a8b7.tar.bz2 |
[svn-r26794] Fix formatting for selection. Irregular reuses blocks and points for datasets however indentation after line breaks are an issue.
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r-- | tools/lib/h5tools_str.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index 4381df8..cd1bec8 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -438,11 +438,9 @@ h5tools_str_dump_space_slabs(h5tools_str_t *str, hid_t rspace, H5Sget_regular_hyperslab(rspace, start, stride, count, block); /* Print hyperslab information */ - h5tools_str_append(str, "%s", "\n"); - h5tools_str_indent(str, info, ctx); /* Start coordinates */ - h5tools_str_append(str, "%s ", START); + h5tools_str_append(str, "%s%s ", info->line_indent, START); for (j = 0; j < ndims; j++) h5tools_str_append(str, "%s" HSIZE_T_FORMAT, j ? "," : "(", start[j]); h5tools_str_append(str, ")"); @@ -478,8 +476,6 @@ h5tools_str_dump_space_slabs(h5tools_str_t *str, hid_t rspace, h5tools_str_append(str, "%s" HSIZE_T_FORMAT, j ? "," : "(", block[j]); } h5tools_str_append(str, ")"); - h5tools_str_append(str, "%s", "\n"); - h5tools_str_indent(str, info, ctx); } /*------------------------------------------------------------------------- @@ -523,8 +519,7 @@ h5tools_str_dump_space_blocks(h5tools_str_t *str, hid_t rspace, for (i = 0; i < nblocks; i++) { int j; - h5tools_str_append(str, info->dset_blockformat_pre, i ? "," OPTIONAL_LINE_BREAK " " : "", - (unsigned long)i); + h5tools_str_append(str, info->dset_blockformat_pre, i ? "," OPTIONAL_LINE_BREAK " " : "", (unsigned long)i); /* Start coordinates and opposite corner */ for (j = 0; j < ndims; j++) |