summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-06-15 14:37:04 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-06-15 14:37:04 (GMT)
commit33a566ea9bdcdbd97dd5df5c8fb7d8ed418246a9 (patch)
treed22a9dc1368b64bb9554389b3fe522103c97078c /tools/lib
parentd66de6e699fbd5176ce7e4142e1e2a1f6d83af3a (diff)
downloadhdf5-33a566ea9bdcdbd97dd5df5c8fb7d8ed418246a9.zip
hdf5-33a566ea9bdcdbd97dd5df5c8fb7d8ed418246a9.tar.gz
hdf5-33a566ea9bdcdbd97dd5df5c8fb7d8ed418246a9.tar.bz2
[svn-r8689] Purpose:
h5dump new feature Description: add processing of tab characters (in the context of the new CR/LF option ) Solution: Platforms tested: linux solaris AIX Misc. update:
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools_str.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 160b8ce..faf801e 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -464,7 +464,10 @@ h5tools_print_char(h5tools_str_t *str, const h5dump_t *info, unsigned char ch)
h5tools_str_append(str, "\\r");
break;
case '\t':
- h5tools_str_append(str, "\\t");
+ if (info->do_lf)
+ h5tools_str_append(str, "\t");
+ else
+ h5tools_str_append(str, "\\t");
break;
default:
if (isprint(ch))