Macro text_block_macros::text_block[][src]

macro_rules! text_block {
    () => { ... };
    ($line:literal) => { ... };
    ($head:literal $($tail:literal)*) => { ... };
}

Create a multiline string literal.

Example:

use text_block_macros::text_block;
let text = text_block! {
    "abc"
    "def"
    "ghi"
};
assert_eq!(text, "abc\ndef\nghi");