changeset 5091:87b0b9a97e40

[project @ 2004-12-03 04:41:50 by jwe]
author jwe
date Fri, 03 Dec 2004 04:42:01 +0000
parents c42c90543e36
children 731d16475601
files scripts/ChangeLog scripts/strings/deblank.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Dec 03 04:32:11 2004 +0000
+++ b/scripts/ChangeLog	Fri Dec 03 04:42:01 2004 +0000
@@ -1,3 +1,8 @@
+2004-12-02  Pascal A. Dupuis  <Pascal.Dupuis@esat.kuleuven.ac.be>
+
+	* strings/deblank.m: Remove all trailing whitespace (check with
+	isspace), not just SPC.
+
 2004-12-02  Balint Reczey  <balint_reczey@yahoo.com>
 
 	* statistics/base/moment.m: Fix argument parsing for N-d arrays.
--- a/scripts/strings/deblank.m	Fri Dec 03 04:32:11 2004 +0000
+++ b/scripts/strings/deblank.m	Fri Dec 03 04:42:01 2004 +0000
@@ -35,7 +35,7 @@
 
   if (isstr (s))
 
-    k = find (s != " " & s != "\0");
+    k = find (! isspace (x) & s != "\0");
     if (isempty (s) || isempty (k))
       t = "";
     else