diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-06-15 14:37:04 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-06-15 14:37:04 (GMT) |
commit | 33a566ea9bdcdbd97dd5df5c8fb7d8ed418246a9 (patch) | |
tree | d22a9dc1368b64bb9554389b3fe522103c97078c /tools/lib | |
parent | d66de6e699fbd5176ce7e4142e1e2a1f6d83af3a (diff) | |
download | hdf5-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.c | 5 |
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)) |