x icon indicating copy to clipboard operation
x copied to clipboard

ansi: right to left truncation option?

Open bashbunni opened this issue 1 year ago • 0 comments
trafficstars

Right now, the Truncate function iterates over the given string from left to right. It might be nice to have either TruncateRTL or DirectionalTruncate

The left to right only option that we have now, can cause some issues with right-justified text or right-to-left languages (e.g. arabic)

Example: " UK" becomes " U..."

bashbunni avatar Sep 27 '24 01:09 bashbunni