Page 1 of 1

Better trim for line ending?

Posted: 03 Jun 2014 19:32
by Huidong
Related to this issue: http://www.xyplorer.com/xyfc/viewtopic. ... 05#p105705

With the upcoming secret weapon, there seems to be a need for better trimming of line ending CR+LF, such that we won't have to run either
trim("$output", "<crlf>");
or
substr("$output", 0, -2);
every time?

Related question: regarding the trim flag in gettoken(), as well as the default charlist for trim(), would you consider also including <crlf> in addition to space, Don? I believe in most cases this is desired. Correct me if I'm wrong.

Thank you!

Re: Better trim for line ending?

Posted: 03 Jun 2014 20:06
by admin
I will first see if I can polish the returns of runret.