All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

wrap-text Function

Summary

Wraps text for a given character width.

Package

capi

Signature

wrap-text text width &key start end => strings

Arguments
text
A string.
width
A positive integer.
start, end
Bounding index designators of text.
Values
strings
A list of strings.
Description

The function wrap-text takes a string text and returns a list of strings, each of which is no longer than width. Together the strings in strings contain all the non-whitespace characters of text between start and end and are suitable for displaying this text on multiple lines of length width.

See also

wrap-text-for-pane


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27