Add post_blank to the rust types.

This commit is contained in:
Tom Alexander
2023-12-21 14:56:58 -05:00
parent 8b85c02ef1
commit 72952adb6b
108 changed files with 318 additions and 109 deletions

View File

@@ -1,3 +1,5 @@
use organic::types::StandardProperties;
use super::macros::intermediate;
use crate::error::CustomError;
@@ -5,6 +7,7 @@ use crate::error::CustomError;
#[derive(Debug, Clone)]
pub(crate) struct IVerbatim {
pub(crate) contents: String,
pub(crate) post_blank: organic::types::PostBlank,
}
intermediate!(
@@ -16,6 +19,7 @@ intermediate!(
Ok(IVerbatim {
// TODO: Should this coalesce whitespace like PlainText?
contents: original.contents.to_owned(),
post_blank: original.get_post_blank(),
})
}
);