Truncating long lines for better pdf output