InsertLinebreaks
InsertLinebreaks["string"]
inserts newline characters into string to make a string in which no line is longer than 78 characters.
InsertLinebreaks["string",n]
inserts newline characters to make no line longer than n characters.
Details
- InsertLinebreaks works by replacing whitespace with newline characters.
- If a single span of non-whitespace characters is longer than n characters, newlines will be inserted every n characters within the span.
Examples
Wolfram Research (2015), InsertLinebreaks, Wolfram Language function, https://reference.wolfram.com/language/ref/InsertLinebreaks.html.
Text
Wolfram Research (2015), InsertLinebreaks, Wolfram Language function, https://reference.wolfram.com/language/ref/InsertLinebreaks.html.
CMS
Wolfram Language. 2015. "InsertLinebreaks." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/InsertLinebreaks.html.
APA
Wolfram Language. (2015). InsertLinebreaks. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InsertLinebreaks.html