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

16 lines
351 B
Rust

use super::macros::intermediate;
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(),
})
});