summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_str.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-06-30 18:45:14 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-06-30 18:45:14 (GMT)
commit265a1d020947e829c570c051a02761779f37a706 (patch)
treebc575a3ddbbdbec67d41bdd2bc28d9132b96cb1a /tools/lib/h5tools_str.c
parentcedec275523c73e98bc556ff0e77cbfed36b33f8 (diff)
downloadhdf5-265a1d020947e829c570c051a02761779f37a706.zip
hdf5-265a1d020947e829c570c051a02761779f37a706.tar.gz
hdf5-265a1d020947e829c570c051a02761779f37a706.tar.bz2
[svn-r8773] Purpose:
bug fix Description: the indentation was not made properly for nested objects when printing array indices Solution: added the indentation to h5tools_simple_prefix function Platforms tested: linux AIX solaris Misc. update:
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r--tools/lib/h5tools_str.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 056838e..3350f51 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -927,9 +927,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5dump_t *info, hid_t container,
/*need to indent some more here*/
if (ctx->indent_level >= 0 )
{
- if (info->pindex)
- h5tools_str_append(str, "%s", " ");
- else
+ if (!info->pindex)
h5tools_str_append(str, "%s", OPT(info->line_pre, ""));
}