summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-12-03 19:43:56 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-12-03 19:43:56 (GMT)
commit4ed4c8fb47fd4718b2727be79cf91a3d75e1e83d (patch)
tree1c01941dbde8a5e2a6c2d44e879b2951507eee75 /tools
parent78cd5541bf5fbc420e2d2ed09b98e3b976493e7a (diff)
downloadhdf5-4ed4c8fb47fd4718b2727be79cf91a3d75e1e83d.zip
hdf5-4ed4c8fb47fd4718b2727be79cf91a3d75e1e83d.tar.gz
hdf5-4ed4c8fb47fd4718b2727be79cf91a3d75e1e83d.tar.bz2
[svn-r1852] fixed a bug that i introduced with the last change to this file.
Diffstat (limited to 'tools')
-rw-r--r--tools/h5tools.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index f857970..a1048ed 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -2202,6 +2202,7 @@ static void display_string
switch (H5Tget_class(memb)) {
case H5T_INTEGER:
indentation(indent+COL);
+ indent += 2;
if (nelmts > 1) {
printf("[ ");
}
@@ -2210,10 +2211,12 @@ static void display_string
if (nelmts > 1) {
printf(" ]");
}
+ indent -= 2;
break;
case H5T_FLOAT:
indentation(indent+COL);
+ indent += 2;
if (nelmts > 1) {
printf("[ ");
}
@@ -2222,6 +2225,7 @@ static void display_string
if (nelmts > 1) {
printf(" ]");
}
+ indent -= 2;
break;
case H5T_TIME:
@@ -2230,10 +2234,17 @@ static void display_string
case H5T_STRING:
indentation(indent+COL);
- display_string
+ indent += 2;
+ if (nelmts > 1) {
+ printf("[ ");
+ }
+ display_string
(nelmts, memb, sm_buf+offset+i*p_type_nbytes, size, nelmts, dim_n_size, 0 ) ;
-
- break;
+ if (nelmts > 1) {
+ printf(" ]");
+ }
+ indent -= 2;
+ break;
case H5T_BITFIELD:
@@ -2250,8 +2261,8 @@ static void display_string
}
- if ( j == nmembs-1) printf(" \n");
- else printf(" ,\n");
+ if ( j == nmembs-1) printf("\n");
+ else printf(",\n");
H5Tclose(memb);
}