emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/tomelr baf81228bc 45/84: fix: Correct the spec for nest


From: ELPA Syncer
Subject: [elpa] externals/tomelr baf81228bc 45/84: fix: Correct the spec for nested array of tables
Date: Tue, 3 May 2022 09:58:11 -0400 (EDT)

branch: externals/tomelr
commit baf81228bc812de55e4df9340dd34cc8cc5a2ab8
Author: Kaushal Modi <kaushal.modi@gmail.com>
Commit: Kaushal Modi <kaushal.modi@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"
+        }
       ]
     },
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]