From bug-request at octave dot org Thu Dec 2 22:43:31 2004 Subject: deblank.m: remove blanks or spaces ? From: "John W. Eaton" To: "Pascal A. Dupuis" Cc: bug at octave dot org Date: Thu, 2 Dec 2004 23:44:06 -0500 On 29-Nov-2004, Pascal A. Dupuis wrote: | According to the doc, deblank remove the trailing 'blanks' from a | string, where no obvious definitions is given for 'blanks'. The code | implementation is to cut the string at the first ' ' (ASCII 32) or | '\0' character. | | Wouldn't it be better to remove trailing whitespaces ? That would say | tabs, form feeds, line feed, would also be removed. If you're | searching for a number of a word, those entities don't make sense. I applied your patch. Thanks, jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------