refill

Macro refill 

Source
macro_rules! refill {
    ($($proc_macro:tt)*) => { ... };
}
Expand description

Refill a paragraph of wrapped text with a new width.

This function will first use the unfill function to remove newlines from the text. Afterwards the text is filled again using the fill function.

§Usage

fill!($text: lit &str, $width: lit usize) -> lit &str

§Example

use textwrap_macros::refill;

const TEXT: &str = refill!("\
Concurrency
without data
races.
", 20);
assert_eq!(TEXT, "\
Concurrency without
data races.
");