summaryrefslogtreecommitdiffstats
path: root/tools/h5dump.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>2000-04-19 18:08:11 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>2000-04-19 18:08:11 (GMT)
commit173260ac41a9e674a09d7db039ae16f67ba5ae97 (patch)
treebfc5be2b4982c55686873aecb7f12913bd77d835 /tools/h5dump.c
parent90bd6c70d08da9ffc66dde37e63c35ec1dbed006 (diff)
downloadhdf5-173260ac41a9e674a09d7db039ae16f67ba5ae97.zip
hdf5-173260ac41a9e674a09d7db039ae16f67ba5ae97.tar.gz
hdf5-173260ac41a9e674a09d7db039ae16f67ba5ae97.tar.bz2
[svn-r2155] fixed the error in the h5ls output. it is now printing like it did before the tools lib merge.
prints the index numbers. moved the lines that were doing indenting into the conditionals.
Diffstat (limited to 'tools/h5dump.c')
-rw-r--r--tools/h5dump.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c
index 33829b9..37b23e7 100644
--- a/tools/h5dump.c
+++ b/tools/h5dump.c
@@ -70,9 +70,9 @@ static h5dump_t dataformat = {
80, /*line_ncols*//*standard default columns*/
0, /*line_per_line*/
- " ",/*line_pre*/
- " %s ",/*line_1st*/
- " %s",/*line_cont*/
+ "",/*line_pre*/
+ "%s",/*line_1st*/
+ "%s",/*line_cont*/
"",/*line_suf*/
"",/*line_sep*/
1,/*line_multi_new*/
@@ -1231,8 +1231,7 @@ dump_data (hid_t obj_id, int obj_data) {
use indent but with the merging of the tools lib we have to do something different
for the lib funtions... the normal indentation is 6 so when we dont need any extra
indentation, depth will be 0.*/
- depth = indent/stdindent - 2;
-
+depth = indent/stdindent+1;
indentation (indent);
/* printf("%s %s\n", dump_header_format->databegin, BEGIN);*/
begin_obj(dump_header_format->databegin, NULL, dump_header_format->datablockbegin);