Compare commits

..

No commits in common. "26f1eae9a1f7585b37179bb0a07c4b8f5d06d3b6" and "d2d0e9e5dd3b7097e0f61142a6b9d686623d19a0" have entirely different histories.

2 changed files with 2 additions and 13 deletions

View File

@ -1,7 +0,0 @@
** Foo
DEADLINE: <2023-10-16 Mon>
:PROPERTIES:
:foo: *a*
:Bar: *b*
:BAZ: *c*
:END:

View File

@ -101,15 +101,11 @@ impl<'s> Heading<'s> {
_ => None,
})
.flat_map(|section| section.children.iter())
.take_while(|element| match element {
Element::Planning(_) | Element::PropertyDrawer(_) => true,
_ => false,
})
.find_map(|element| match element {
.take(1)
.filter_map(|element| match element {
Element::PropertyDrawer(property_drawer) => Some(property_drawer),
_ => None,
})
.into_iter()
.flat_map(|property_drawer| property_drawer.children.iter())
}
}