Yours does not add the requested "..." when it is needed. (And like the other RE solution will also mess up if there is a newline in there.)
In reply to Re: Re: truncating a line
by tilly
in thread truncating a line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |