diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-05 21:20:33 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-05 21:20:33 (GMT) |
commit | f768247888902ed9eeb2130d13f6c67b89f9c80f (patch) | |
tree | 580208c537c199a18b1eb6a44d4055e7e1edde5e /tools | |
parent | 71f0aeff2a564ed6cc7a22be09b0a698f9e12e13 (diff) | |
download | hdf5-f768247888902ed9eeb2130d13f6c67b89f9c80f.zip hdf5-f768247888902ed9eeb2130d13f6c67b89f9c80f.tar.gz hdf5-f768247888902ed9eeb2130d13f6c67b89f9c80f.tar.bz2 |
[svn-r7541] Purpose:
Bug fixes and code cleanup
Description:
Corrected output of array separator when vlen separator was needed.
datatypes.
Parts of formatting cleanup to greatly reduce the amount of trailing
whitespace emitted in output.
Platforms tested:
FreeBSD 4.9 (sleipnir)
h5committest
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/h5tools_str.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index f160825..ea65adc 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -852,6 +852,8 @@ h5tools_str_sprint(h5tools_str_t *str, const h5dump_t *info, hid_t container, 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) + h5tools_str_append(str, " "); ctx->indent_level++; @@ -880,7 +882,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5dump_t *info, hid_t container, for (i = 0; i < nelmts; i++) { if (i) h5tools_str_append(str, "%s", - OPT(info->arr_sep, "," OPTIONAL_LINE_BREAK)); + OPT(info->vlen_sep, "," OPTIONAL_LINE_BREAK)); #ifdef LATER /* Need to fix so VL data breaks at correct location on end of line -QAK */ |