diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-05 21:28:08 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-05 21:28:08 (GMT) |
commit | b18839aebcbfd8892197d2f8c10b10baef08fc55 (patch) | |
tree | e364a496715bbe3f69b3d5bba3bd6785ada97c70 /tools | |
parent | eb12b59f7c701477959284a5425fdcaf259d5e58 (diff) | |
download | hdf5-b18839aebcbfd8892197d2f8c10b10baef08fc55.zip hdf5-b18839aebcbfd8892197d2f8c10b10baef08fc55.tar.gz hdf5-b18839aebcbfd8892197d2f8c10b10baef08fc55.tar.bz2 |
[svn-r7546] 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 6553c5a..45e2027 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -855,6 +855,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++; @@ -883,7 +885,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 */ |