Identify a mistake in the plain list drawer test.

This commit is contained in:
Tom Alexander 2023-04-17 17:29:35 -04:00
parent f1880fdb7d
commit 49be5ae7b1
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 39 additions and 3 deletions

View File

@ -62,4 +62,27 @@ This test interleaves the opening and closing of each element container to see w
| Drawer | Section | First | First | First | First | First | | Drawer | Section | First | First | First | First | First |
| Dynamic Block | Section | First | First | First | First | First | | Dynamic Block | Section | First | First | First | First | First |
| Footnote Definition | Section | First | First | First | - | - | | Footnote Definition | Section | First | First | First | - | - |
| Plain List | Section | Second | First | Second | - | First | | Plain List | Section | Second | Second | Second | - | First |
* Possible solutions
** Create tiers of exit matchers
- Document level (sections/headlines)
- Greater Block / Dynamic Block
- Remaining element containers
- Object containers
*** What if we ignore exit matchers of lower tiers
**** Test Case 1
#+begin_src org
# A plain list containing a greater block that contains a drawer
1. foo
,#+begin_center
:drawername:
:end:
,#+end_center
2. bar
:drawername:
:end:
#+end_src

View File

@ -1,6 +1,6 @@
1. foo 1. foo
:drawername: :drawername:
:end: :end:
2. bar 2. bar

View File

@ -0,0 +1,13 @@
# A plain list containing a greater block that contains a drawer
1. foo
#+begin_center
:drawername:
:end:
#+end_center
2. bar
:drawername:
:end: