[][src]Module mksvg::text

A utility for wrapping text, and allowing users to insert new lines fromconfig files etc. This primarily exists to enable the text_lines method in "write.rs" to print as desired.

Structs

Text

Functions

escapes

convert escaped characters to their standard response.

wrap

wrap text to a max line lencth of mx, returning a Vec of String

wrap_nl

wrap text to width mx, by adding \n where needed.