Add post_blank to the rust types.
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
use super::macros::intermediate;
|
||||
use super::registry::register_footnote_definition;
|
||||
use super::IntermediateContext;
|
||||
|
||||
use super::IAstNode;
|
||||
use super::IntermediateContext;
|
||||
use crate::error::CustomError;
|
||||
use organic::types::StandardProperties;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct IFootnoteDefinition {}
|
||||
pub(crate) struct IFootnoteDefinition {
|
||||
pub(crate) post_blank: organic::types::PostBlank,
|
||||
}
|
||||
|
||||
intermediate!(
|
||||
IFootnoteDefinition,
|
||||
@@ -16,12 +18,15 @@ intermediate!(
|
||||
{
|
||||
register_footnote_definition(intermediate_context, original.label, &original.children)
|
||||
.await?;
|
||||
Ok(IFootnoteDefinition {})
|
||||
Ok(IFootnoteDefinition {
|
||||
post_blank: original.get_post_blank(),
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct IRealFootnoteDefinition {
|
||||
// TODO: Do I need post_blank for the real footnote definitions?
|
||||
pub(crate) footnote_id: usize,
|
||||
pub(crate) contents: Vec<IAstNode>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user