# HG changeset patch # User jwe # Date 1102048921 0 # Node ID 87b0b9a97e40cb036b30d4bb612dc7d49a1da45c # Parent c42c90543e363656943986d78cc7da63a32d6c6d [project @ 2004-12-03 04:41:50 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -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 --git a/scripts/strings/deblank.m b/scripts/strings/deblank.m --- a/scripts/strings/deblank.m +++ b/scripts/strings/deblank.m @@ -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