lars
committed
on 19 Jan 05
If there's no whitespace before truncate_len, then just truncate at the given index, instead of leaving us with an empty string