Better trim for line ending?

Discuss and share scripts and script files...
Post Reply
Huidong
Posts: 213
Joined: 18 May 2011 21:55

Better trim for line ending?

Post 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!

admin
Site Admin
Posts: 66261
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Better trim for line ending?

Post by admin »

I will first see if I can polish the returns of runret.

Post Reply