in reply to Re: truncating a line
in thread truncating a line

Removing an if is only worthwhile if you still have a correct solution.

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.)

Replies are listed 'Best First'.
Re: Re: Re: truncating a line
by svsingh (Priest) on Jul 01, 2003 at 20:27 UTC
    Argh. Thanks tilly. I was so jazzed that I knew how to approach the first half, I overlooked the second. Read the spec, read the spec, read the spec.