cut_long: Cut a string to a certain width

Description Usage Arguments

Description

Cut a string to a certain width

Usage

1
cut_long(text, width, max_iter = Inf, current_iter = 1)

Arguments

text

The text to cut.

width

The maximal lenght of a line. If length(width) > 1, the elements are used sequentially, one for each iteration. If there are more iterations than values of width, the last value of width is used for all remaining iterations.

max_iter, current_iter

The number of maximal / current iterations. For example, two iterations will result in two tidied lines and one line containing the remaining text.


lorenzwalthert/stylermd documentation built on May 5, 2019, 1:36 a.m.