diff options
author | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 2000-05-25 17:08:45 (GMT) |
---|---|---|
committer | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 2000-05-25 17:08:45 (GMT) |
commit | 69ca8832e647c2107bbb0204e6858966e543320c (patch) | |
tree | 6a864979a422e265bc0602a68d0557fd655e5c92 | |
parent | 7e2890384e1c951211aa17cb19aec10c318ac735 (diff) | |
download | hdf5-69ca8832e647c2107bbb0204e6858966e543320c.zip hdf5-69ca8832e647c2107bbb0204e6858966e543320c.tar.gz hdf5-69ca8832e647c2107bbb0204e6858966e543320c.tar.bz2 |
[svn-r2290] fixed the indenting error related to compound types.
-rw-r--r-- | tools/h5tools.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c index 1ab45b7..0fd8925 100644 --- a/tools/h5tools.c +++ b/tools/h5tools.c @@ -909,13 +909,16 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info, h5dump_str_append(str,"%s",OPT(info->line_indent,"")); } } + ctx->indent_level++; h5dump_sprint(str, info, container, memb, (char*)vp+offset+i*size, ctx); + ctx->indent_level--; } if (nelmts>1) { - h5dump_str_append(str, "%s", OPT(info->arr_suf, "]")); + h5dump_str_append(str, "%s", OPT(info->arr_suf, "]")); } H5Tclose(memb); + } h5dump_str_append(str, "%s", OPT(info->cmpd_end, "")); @@ -928,8 +931,7 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info, h5dump_str_append(str,"%s",OPT(info->line_indent,"")); } - h5dump_str_append(str, "%s", OPT(info->cmpd_suf, "}")); - + h5dump_str_append(str, "%s", OPT(info->cmpd_suf, "}")); } else if (H5T_ENUM==H5Tget_class(type)) { char enum_name[1024]; if (H5Tenum_nameof(type, vp, enum_name, sizeof enum_name)>=0) { |