Defold RichText 5.9.0
CHANGE: richtext.truncate()
now has an options table as a third argument and an option to truncate on a per word basis instead of per character. The length will in this case indicate how many words to show instead of how many characters.