diff --git a/org_mode_samples/affiliated_keyword/optional_value.org b/org_mode_samples/affiliated_keyword/optional_value.org index 99ebc24..3b77d4c 100644 --- a/org_mode_samples/affiliated_keyword/optional_value.org +++ b/org_mode_samples/affiliated_keyword/optional_value.org @@ -1,3 +1,8 @@ #+CAPTION[foo]: *bar* #+CAPTION[*lorem* ipsum]: dolar 1. baz + + +#+CAPTION[foo]: *bar* +#+CAPTION[*lorem* ipsum]: dolar +# Comments cannot have affiliated keywords so those become regular keywords. diff --git a/src/compare/compare_field.rs b/src/compare/compare_field.rs index 1fd82aa..e56e316 100644 --- a/src/compare/compare_field.rs +++ b/src/compare/compare_field.rs @@ -416,8 +416,9 @@ where /// /// Org-mode seems to store these as a 3-deep list: /// - Outer list with 1 element per #+caption keyword (or other parsed keyword). -/// - Middle list that seems to always have 1 element. -/// - Inner list of the objects from each #+caption keyword (or other parsed keyword). +/// - Middle list which has: +/// - first element is a list of objects representing the value after the colon. +/// - every additional element is a list of objects from inside the square brackets (the optional value). pub(crate) fn compare_property_list_of_list_of_list_of_ast_nodes< 'b, 's,