Wolfram Computation Meets Knowledge

StringWrap

Contributed by: Arnoud Buzing

Line-wrap a string at a specific width

ResourceFunction["StringWrap"][string,n]

line-wraps string at width n.

Examples

Basic Examples

Line-wrap a Wikipedia article at 40 characters:

In[1]:=
ResourceFunction["StringWrap"][WikipediaData["Ontario Morning"], 40]
Out[1]=

Resource History