View Source Boxen.WrapText (boxen v0.1.0)

Helper module for wrapping text(with ANSI code)

Link to this section Summary

Functions

Wraps a given text inside the given length

Link to this section Functions

Link to this function

wrap(text, max_line_length)

View Source
@spec wrap(text :: String.t(), max_line_length :: non_neg_integer()) :: String.t()

Wraps a given text inside the given length

This function can take multiple lines separated by