unfill

Macro unfill 

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

Unpack a paragraph of already-wrapped text.

This function attempts to recover the original text from a single paragraph of text. In addition, it will recognize a common prefix and a common line ending among the lines.

§Usage

unfill!($text: lit &str) -> lit &str

§Example

use textwrap_macros::unfill;

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