branch: externals/tomelr commit baf81228bc812de55e4df9340dd34cc8cc5a2ab8 Author: Kaushal Modi <kaushal.m...@gmail.com> Commit: Kaushal Modi <kaushal.m...@gmail.com>
fix: Correct the spec for nested array of tables --- README.org | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/README.org b/README.org index b3513273e4..4944ec5fcb 100644 --- a/README.org +++ b/README.org @@ -573,12 +573,17 @@ See [org#Drawers](https://www.gnu.org/software/emacs/manual/html_mono/org.html#D '((fruits . (((name . "apple") (physical . ((color . "red") (shape . "round"))) - (varieties . ((((name . "red delicious")) - ((name . "granny smith")))))) + (varieties . (((name . "red delicious")) + ((name . "granny smith"))))) ((name . "banana") (varieties . (((name . "plantain")))))))) #+end_src **** TOML +#+begin_src emacs-lisp :noweb yes :exports results :wrap src toml +(tomelr-encode + <<nested-table-arrays>>) +#+end_src + #+begin_src toml [[fruits]] name = "apple" @@ -611,14 +616,12 @@ See [org#Drawers](https://www.gnu.org/software/emacs/manual/html_mono/org.html#D "shape": "round" }, "varieties": [ - [ - { - "name": "red delicious" - }, - { - "name": "granny smith" - } - ] + { + "name": "red delicious" + }, + { + "name": "granny smith" + } ] }, {