Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: trim

From: rotenca:telvia:it at: 18-Sep-2002 17:00

Hi Graham,
> >> trim test1: { this is an embedded tab ^-which will be left alone } > == "this is an embedded tab ^-which will be left alone" > >> trim test2: { this is an embedded tab ^/^-which gets clobbered } > == "this is an embedded tab^/which gets clobbered" > >> trim/head/tail test2: { this is an embedded tab ^/^-which is left alone } > == "this is an embedded tab ^/^-which is left alone" > The default behaviour for trim appears flawed.
Help (and Core doc) says: "Removes whitespace from a string". It seems that instead trim removes leading and tailing space/tab from every lines in the string. What core/help says is the trim/head/tail behaviour. Could be that docs is flawed? --- Ciao Romano