diff options
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r-- | tools/lib/h5tools_str.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index 3d9aaf7..80ad868 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -856,8 +856,13 @@ 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,"")); |