wrap_sentence: A string wrapping function

Description Usage Arguments Examples

Description

This function takes a space-delimited sentence and inserts newlines to wrap the sentence.

Usage

1
wrap_sentence(string, width = 30)

Arguments

string

The single string

width

The number of characters to limit the lines of the string

Examples

1
2
# Wraps a long string
wrap_sentence("My bonnie lies over the ocean", width=8)

rblissett/pubpub documentation built on May 29, 2019, 6:53 p.m.