natter/src/intermediate/plain_text.rs
2023-10-29 22:29:28 -04:00

16 lines
380 B
Rust

use super::macros::intermediate;
use super::registry::Registry;
use super::util::coalesce_whitespace;
use crate::error::CustomError;
#[derive(Debug, Clone)]
pub(crate) struct IPlainText {
pub(crate) source: String,
}
intermediate!(IPlainText, PlainText, original, registry, {
Ok(IPlainText {
source: coalesce_whitespace(original.source).into_owned(),
})
});