summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_str.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-06-15 14:26:41 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-06-15 14:26:41 (GMT)
commit435c8b2d7d58f361b8a74ff5bf8e53333b5f6878 (patch)
tree9daf721fad6cb812c9007d864fcb04e1bd522f96 /tools/lib/h5tools_str.c
parentfabb5167ba3afb1f32784d274df67f8b6195e5ea (diff)
downloadhdf5-435c8b2d7d58f361b8a74ff5bf8e53333b5f6878.zip
hdf5-435c8b2d7d58f361b8a74ff5bf8e53333b5f6878.tar.gz
hdf5-435c8b2d7d58f361b8a74ff5bf8e53333b5f6878.tar.bz2
[svn-r8688] Purpose:
h5dump new feature Description: add processing of tab characters (in the context of the new option process CR/LF) Solution: Platforms tested: linux solaris AIX Misc. update:
Diffstat (limited to 'tools/lib/h5tools_str.c')
-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 b717b3a..6656c81 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -466,7 +466,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))