Files
natter/src/intermediate/verbatim.rs

26 lines
588 B
Rust
Raw Normal View History

2023-12-21 14:56:58 -05:00
use organic::types::StandardProperties;
use super::macros::intermediate;
2023-10-27 17:48:19 -04:00
use crate::error::CustomError;
2023-10-29 22:31:29 -04:00
#[derive(Debug, Clone)]
pub(crate) struct IVerbatim {
pub(crate) contents: String,
2023-12-21 14:56:58 -05:00
pub(crate) post_blank: organic::types::PostBlank,
}
2023-10-27 17:48:19 -04:00
intermediate!(
IVerbatim,
&'orig organic::types::Verbatim<'parse>,
original,
_intermediate_context,
{
Ok(IVerbatim {
// TODO: Should this coalesce whitespace like PlainText?
contents: original.contents.to_owned(),
2023-12-21 14:56:58 -05:00
post_blank: original.get_post_blank(),
})
}
);