From f768247888902ed9eeb2130d13f6c67b89f9c80f Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sun, 5 Oct 2003 16:20:33 -0500 Subject: [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 --- tools/lib/h5tools_str.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- cgit v0.12