Better trim for line ending?
Posted: 03 Jun 2014 19:32
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
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!
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!