# HG changeset patch # User jwe # Date 1102048921 0 # Node ID 87b0b9a97e40cb036b30d4bb612dc7d49a1da45c # Parent c42c90543e363656943986d78cc7da63a32d6c6d [project @ 2004-12-03 04:41:50 by jwe] diff -r c42c90543e36 -r 87b0b9a97e40 scripts/ChangeLog --- 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 + + * strings/deblank.m: Remove all trailing whitespace (check with + isspace), not just SPC. + 2004-12-02 Balint Reczey * statistics/base/moment.m: Fix argument parsing for N-d arrays. diff -r c42c90543e36 -r 87b0b9a97e40 scripts/strings/deblank.m --- 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