Function Repository Resource:

StringWrap

Source Notebook

Line-wrap a string at a specific width

Contributed by: Arnoud Buzing

ResourceFunction["StringWrap"][string,n]

line-wraps string at width n.

Examples

Basic Examples (1) 

Line-wrap a Wikipedia article at 40 characters:

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

Publisher

Arnoud Buzing

Version History

  • 2.0.0 – 12 August 2019
  • 1.0.0 – 17 December 2018

License Information