# HG changeset patch # User jwe # Date 1173256984 0 # Node ID 24666a9192f2da9469d27b4cdd07ce3a1eb63f24 # Parent 5a91bf0a47e85af7d15b4884c2a45483cbf1039b [project @ 2007-03-07 08:43:03 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2007-03-07 John W. Eaton + + * strings/blanks.m: Omit first index in assignment. + 2007-03-07 Paul Kienzle * set/setdiff.m: Some code cleanup and a fix for setdiff on rows. diff --git a/scripts/strings/blanks.m b/scripts/strings/blanks.m --- a/scripts/strings/blanks.m +++ b/scripts/strings/blanks.m @@ -34,7 +34,9 @@ error ("blanks: n must be a non-negative integer"); endif - s(1,1:n) = " "; + ## If 1:n is empty, the following expression will create an empty + ## character string. Otherwise, it will create a row vector. + s(1:n) = " "; endfunction