diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-06-30 18:45:14 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-06-30 18:45:14 (GMT) |
commit | 265a1d020947e829c570c051a02761779f37a706 (patch) | |
tree | bc575a3ddbbdbec67d41bdd2bc28d9132b96cb1a /tools/lib/h5tools_str.c | |
parent | cedec275523c73e98bc556ff0e77cbfed36b33f8 (diff) | |
download | hdf5-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.c | 4 |
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, "")); } |