Macro place_macro::replace_newline
source · replace_newline!() { /* proc-macro */ }
Expand description
Replaces newlines and follwing whitespace in string literal with another string.
Example
use place_macro::replace_newline;
let v = replace_newline!("hello
every body
", ", ");
assert_eq!(v, "hello, every body, ");