Word Wrap

Pure
WordWrap

Wraps text at word boundaries to fit within a maximum line length.

Type: Pure (no side effects)
Category: Fortuna|String & Text
Keywords: string & text

Inputs

NameTypeDefaultDescription
TextFStringText parameter
MaxLineLengthintMaxLineLength parameter

Outputs

NameTypeDescription
ReturnValueFStringReturnValue output

Example Use Cases

Example 1

Format dialogue text for a fixed-width text box.

Example 2

Wrap tooltip text for consistent display.