From beff8f89990c12de2687c32f9e3d26255a84ae85 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 16 Apr 2023 17:41:14 -0400 Subject: [PATCH] Add the drawer first tests. --- .../element_container_priority/README.org | 16 ++++++++-------- .../element_container_priority/drawer_drawer.org | 5 +++++ .../drawer_dynamic_block.org | 4 ++++ .../drawer_footnote_definition.org | 4 ++++ .../drawer_plain_list.org | 4 ++++ 5 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 org_mode_samples/element_container_priority/drawer_drawer.org create mode 100644 org_mode_samples/element_container_priority/drawer_dynamic_block.org create mode 100644 org_mode_samples/element_container_priority/drawer_footnote_definition.org create mode 100644 org_mode_samples/element_container_priority/drawer_plain_list.org diff --git a/org_mode_samples/element_container_priority/README.org b/org_mode_samples/element_container_priority/README.org index 0881c91..4758af4 100644 --- a/org_mode_samples/element_container_priority/README.org +++ b/org_mode_samples/element_container_priority/README.org @@ -53,11 +53,11 @@ Sections are divided by headlines. * Which container takes priority This test interleaves the opening and closing of each element container to see which element becomes parsed vs gets broken up. The row determines the first opening element and the column determines the second opening element. # Section first and section second tests are identical so I only included section first in the repo. -| | Section | Greater Block | Drawer | Dynamic Block | Footnote Definition | Plain List | -|---------------------+---------+---------------+---------------+---------------+---------------------+---------------| -| Section | - | Section | Section | Section | Section | Section | -| Greater Block | Section | First |First |First | First |First | -| Drawer | Section | First | | | | | -| Dynamic Block | Section | First | | | | | -| Footnote Definition | Section | First | | | | | -| Plain List | Section | Second | | | | | +| | Section | Greater Block | Drawer | Dynamic Block | Footnote Definition | Plain List | +|---------------------+---------+---------------+---------+---------------+---------------------+------------| +| Section | - | Section | Section | Section | Section | Section | +| Greater Block | Section | First | First | First | First | First | +| Drawer | Section | First | First | First | First | First | +| Dynamic Block | Section | First | | | | | +| Footnote Definition | Section | First | | | | | +| Plain List | Section | Second | | | | | diff --git a/org_mode_samples/element_container_priority/drawer_drawer.org b/org_mode_samples/element_container_priority/drawer_drawer.org new file mode 100644 index 0000000..8b8048b --- /dev/null +++ b/org_mode_samples/element_container_priority/drawer_drawer.org @@ -0,0 +1,5 @@ +:firstdrawer: +:seconddrawer: +foo +:end: +:end: diff --git a/org_mode_samples/element_container_priority/drawer_dynamic_block.org b/org_mode_samples/element_container_priority/drawer_dynamic_block.org new file mode 100644 index 0000000..0d99d8e --- /dev/null +++ b/org_mode_samples/element_container_priority/drawer_dynamic_block.org @@ -0,0 +1,4 @@ +:drawername: +#+BEGIN: foo :hlines 1 :id global +:end: +#+END: diff --git a/org_mode_samples/element_container_priority/drawer_footnote_definition.org b/org_mode_samples/element_container_priority/drawer_footnote_definition.org new file mode 100644 index 0000000..da03cf6 --- /dev/null +++ b/org_mode_samples/element_container_priority/drawer_footnote_definition.org @@ -0,0 +1,4 @@ +:drawername: +[fn:1] footnote. +:end: +Is this still in the footnote? diff --git a/org_mode_samples/element_container_priority/drawer_plain_list.org b/org_mode_samples/element_container_priority/drawer_plain_list.org new file mode 100644 index 0000000..6048d95 --- /dev/null +++ b/org_mode_samples/element_container_priority/drawer_plain_list.org @@ -0,0 +1,4 @@ +:drawername: +1. foo +:end: +2. bar