Julia package for wrapping text into paragraphs.
Documentation | Build Status |
---|---|
This Julia package allows to wrap long lines of text to fit within a given width.
julia> text = "This text is going to be wrapped around in lines no longer than 20 characters.";
julia> println_wrapped(text, width=20)
This text is going
to be wrapped around
in lines no longer
than 20 characters.
The other exported functions are wrap
(returns a string) and print_wrapped
.
See the documentation for more advanced settings.
To install the module, use Julia’s package manager: start pkg mode by pressing ] and then enter:
(v1.3) pkg> add TextWrap
Dependencies will be installed automatically.
The module can then be loaded like any other Julia module:
julia> using TextWrap
textwidth
instead of length
subsequent_indent
replace_whitespace=true
case