Minor modifications to fix truncatewords and empty tags.