diff --git a/org_mode_samples/sections_and_headings/document_post_blank.org b/org_mode_samples/sections_and_headings/document_post_blank.org new file mode 100644 index 00000000..a473d617 --- /dev/null +++ b/org_mode_samples/sections_and_headings/document_post_blank.org @@ -0,0 +1,5 @@ +* foo + + + + diff --git a/src/types/document.rs b/src/types/document.rs index 837b7415..e39e19cb 100644 --- a/src/types/document.rs +++ b/src/types/document.rs @@ -68,10 +68,7 @@ impl<'s> StandardProperties<'s> for Document<'s> { } fn get_post_blank(&self) -> PostBlank { - self.into_iter() - .last() - .map(|child| child.get_post_blank()) - .unwrap_or(0) + 0 } }