better line truncation