Skip to content

strCrop

Ben edited this page Aug 16, 2022 · 1 revision

Crops text to a given size

TRP3_API.utils.str.crop(text, size)

Arguments

  • text: string
  • size: integer

Returns

  • croppedText with "..." at the end if it is too long to fit within size
Clone this wiki locally