Get post blank for footnote references.

This commit is contained in:
Tom Alexander
2023-10-31 22:57:11 -04:00
parent 645d9abf9c
commit b1773ac90e
3 changed files with 13 additions and 7 deletions

View File

@@ -82,6 +82,7 @@ fn anonymous_footnote<'b, 'g, 'r, 's>(
FootnoteReference {
source: source.into(),
contents: Some(contents.into()),
post_blank: _trailing_whitespace.map(Into::<&str>::into),
label: None,
definition: children,
},
@@ -130,6 +131,7 @@ fn inline_footnote<'b, 'g, 'r, 's>(
FootnoteReference {
source: source.into(),
contents: Some(contents.into()),
post_blank: _trailing_whitespace.map(Into::<&str>::into),
label: Some(label_contents.into()),
definition: children,
},
@@ -155,6 +157,7 @@ fn footnote_reference_only<'b, 'g, 'r, 's>(
FootnoteReference {
source: source.into(),
contents: None,
post_blank: _trailing_whitespace.map(Into::<&str>::into),
label: Some(label_contents.into()),
definition: Vec::with_capacity(0),
},