summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-06-29 17:42:09 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-06-29 17:42:09 (GMT)
commitd4eec2cb073e4e9f02ca990cbd93480e526a130e (patch)
tree41fceceb69736cd18354a986d2d34544b55c4ffc /tools/lib
parent3edde57e73c43474ee146b0c8073fba4eafe9e34 (diff)
downloadhdf5-d4eec2cb073e4e9f02ca990cbd93480e526a130e.zip
hdf5-d4eec2cb073e4e9f02ca990cbd93480e526a130e.tar.gz
hdf5-d4eec2cb073e4e9f02ca990cbd93480e526a130e.tar.bz2
[svn-r8758] Purpose:
h5dump new feature, bug fix Description: added the dump of unmamed types to the file contents fixed a bug in the type array, it was printing invalid characters with the array indices option on Solution: Platforms tested: linux AIX solaris Misc. update:
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools_str.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 9214b89..056838e 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -925,8 +925,14 @@ h5tools_str_sprint(h5tools_str_t *str, const h5dump_t *info, hid_t container,
h5tools_str_append(str, "%s", "\n");
/*need to indent some more here*/
- if (ctx->indent_level >= 0)
- h5tools_str_append(str, "%s", OPT(info->line_pre, ""));
+ if (ctx->indent_level >= 0 )
+ {
+ if (info->pindex)
+ h5tools_str_append(str, "%s", " ");
+ else
+ h5tools_str_append(str, "%s", OPT(info->line_pre, ""));
+ }
+
for (x = 0; x < ctx->indent_level + 1; x++)
h5tools_str_append(str,"%s",OPT(info->line_indent,""));