truncate line in web mode