Crate textwrap [] [src]

textwrap provides functions for word wrapping and filling text.

Structs

Wrapper

A Wrapper holds settings for wrapping text.

Functions

dedent

Removes common leading whitespace from each line.

fill

Fill a line of text at width characters. Strings are wrapped based on their displayed width, not their size in bytes.

indent

Add prefix to each non-empty line.

wrap

Wrap a line of text at width characters. Strings are wrapped based on their displayed width, not their size in bytes.