Fix footnote reference type.

This commit is contained in:
Tom Alexander
2023-10-09 13:23:08 -04:00
parent 9565435526
commit 5ac12229f4
3 changed files with 22 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ use crate::types::ExportSnippet;
use crate::types::FixedWidthArea;
use crate::types::FootnoteDefinition;
use crate::types::FootnoteReference;
use crate::types::FootnoteReferenceType;
use crate::types::GetStandardProperties;
use crate::types::Heading;
use crate::types::HorizontalRule;
@@ -3323,7 +3324,10 @@ fn compare_footnote_reference<'b, 's>(
),
(
EmacsField::Required(":type"),
|_| Some("inline"),
|r| Some(match r.get_type() {
FootnoteReferenceType::Standard => "standard",
FootnoteReferenceType::Inline => "inline",
}),
compare_property_unquoted_atom
)
)? {