[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tomelr de661716af 72/84: style: Remove space from after
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tomelr de661716af 72/84: style: Remove space from after and before [ and ] brackets |
Date: |
Tue, 3 May 2022 09:58:15 -0400 (EDT) |
branch: externals/tomelr
commit de661716af55da2a102551f51def4a2468f9593f
Author: Kaushal Modi <kaushal.modi@gmail.com>
Commit: Kaushal Modi <kaushal.modi@gmail.com>
style: Remove space from after and before [ and ] brackets
---
README.org | 80 +++++++++++++++++++++++++++++-----------------------------
test/tarray.el | 12 ++++-----
test/tplist.el | 8 +++---
test/ttable.el | 2 +-
tomelr.el | 5 ++--
5 files changed, 53 insertions(+), 54 deletions(-)
diff --git a/README.org b/README.org
index 6afaf2fb0b..3bf0b13e59 100644
--- a/README.org
+++ b/README.org
@@ -19,7 +19,7 @@ It was then refactored to meet the specification defined
below.
This library has only one entry point for simplicity: ~tomelr-encode~.
- Input :: Lisp data expression in Alist or Plist format
-- Ouput :: TOML string
+- Output :: TOML string
** Example
*** Alist data
#+begin_src emacs-lisp :eval no :noweb-ref data-example-alist
@@ -46,13 +46,13 @@ This library has only one entry point for simplicity:
~tomelr-encode~.
#+RESULTS:
#+begin_src toml
title = "Some Title"
-author = [ "fn ln" ]
+author = ["fn ln"]
description = """
some long description
that spans multiple
lines"""
date = 2022-03-14T01:49:00-04:00
-tags = [ "tag1", "tag2" ]
+tags = ["tag1", "tag2"]
draft = false
[versions]
emacs = "28.1.50"
@@ -95,13 +95,13 @@ You will get the below TOML output for either of the above
input data.
#+RESULTS:
#+begin_src toml
title = "Some Title"
-author = [ "fn ln" ]
+author = ["fn ln"]
description = """
some long description
that spans multiple
lines"""
date = 2022-03-14T01:49:00-04:00
-tags = [ "tag1", "tag2" ]
+tags = ["tag1", "tag2"]
draft = false
[versions]
emacs = "28.1.50"
@@ -448,10 +448,10 @@ CLOSED: [2022-04-29 Fri 00:25]
#+RESULTS:
#+begin_src toml
-integers = [ 1, 2, 3 ]
-integers2 = [ 1, 2, 3 ]
-colors = [ "red", "yellow", "green" ]
-numbers = [ 0.1, 0.2, 0.5, 1, 2, 5 ]
+integers = [1, 2, 3]
+integers2 = [1, 2, 3]
+colors = ["red", "yellow", "green"]
+numbers = [0.1, 0.2, 0.5, 1, 2, 5]
#+end_src
**** JSON Reference
#+begin_src emacs-lisp :noweb yes :exports results
@@ -502,8 +502,8 @@ CLOSED: [2022-04-29 Fri 00:34]
#+RESULTS:
#+begin_src toml
-nested_arrays_of_ints = [ [ 1, 2 ], [ 3, 4, 5 ] ]
-nested_mixed_array = [ [ 1, 2 ], [ "a", "b", "c" ] ]
+nested_arrays_of_ints = [[1, 2], [3, 4, 5]]
+nested_mixed_array = [[1, 2], ["a", "b", "c"]]
#+end_src
**** JSON Reference
#+begin_src emacs-lisp :noweb yes :exports results
@@ -850,15 +850,15 @@ CLOSED: [2022-05-02 Mon 10:29]
#+RESULTS:
#+begin_src toml
title = "Keyword Collection"
-author = [ "firstname1 lastname1", "firstname2 lastname2", "firstname3
lastname3" ]
-aliases = [ "/posts/keyword-concatenation", "/posts/keyword-merging" ]
-images = [ "image 1", "image 2" ]
-keywords = [ "keyword1", "keyword2", "three word keywords3" ]
-outputs = [ "html", "json" ]
-series = [ "series 1", "series 2" ]
-tags = [ "mega front-matter", "keys", "collection", "concatenation", "merging"
]
-categories = [ "cat1", "cat2" ]
-videos = [ "video 1", "video 2" ]
+author = ["firstname1 lastname1", "firstname2 lastname2", "firstname3
lastname3"]
+aliases = ["/posts/keyword-concatenation", "/posts/keyword-merging"]
+images = ["image 1", "image 2"]
+keywords = ["keyword1", "keyword2", "three word keywords3"]
+outputs = ["html", "json"]
+series = ["series 1", "series 2"]
+tags = ["mega front-matter", "keys", "collection", "concatenation", "merging"]
+categories = ["cat1", "cat2"]
+videos = ["video 1", "video 2"]
draft = false
categories_weight = 999
tags_weight = 88
@@ -868,26 +868,26 @@ mybaz = "zoo"
alpha = 1
beta = "two words"
gamma = 10
-animals = [ "dog", "cat", "penguin", "mountain gorilla" ]
-strings-symbols = [ "abc", "def", "two words" ]
-integers = [ 123, -5, 17, 1234 ]
-floats = [ 12.3, -5.0, -1.7e-05 ]
-booleans = [ true, false ]
+animals = ["dog", "cat", "penguin", "mountain gorilla"]
+strings-symbols = ["abc", "def", "two words"]
+integers = [123, -5, 17, 1234]
+floats = [12.3, -5.0, -1.7e-05]
+booleans = [true, false]
[dog]
legs = 4
eyes = 2
- friends = [ "poo", "boo" ]
+ friends = ["poo", "boo"]
[header]
image = "projects/Readingabook.jpg"
caption = "stay hungry stay foolish"
[collection]
nothing = false
nonnil = true
- animals = [ "dog", "cat", "penguin", "mountain gorilla" ]
- strings-symbols = [ "abc", "def", "two words" ]
- integers = [ 123, -5, 17, 1234 ]
- floats = [ 12.3, -5.0, -1.7e-05 ]
- booleans = [ true, false ]
+ animals = ["dog", "cat", "penguin", "mountain gorilla"]
+ strings-symbols = ["abc", "def", "two words"]
+ integers = [123, -5, 17, 1234]
+ floats = [12.3, -5.0, -1.7e-05]
+ booleans = [true, false]
[menu]
[menu.foo]
identifier = "keyword-collection"
@@ -898,11 +898,11 @@ booleans = [ true, false ]
title = "The Image #:counter"
[resources.params]
foo = "bar"
- floats = [ 12.3, -5.0, -1.7e-05 ]
- strings-symbols = [ "abc", "def", "two words" ]
- animals = [ "dog", "cat", "penguin", "mountain gorilla" ]
- integers = [ 123, -5, 17, 1234 ]
- booleans = [ true, false ]
+ floats = [12.3, -5.0, -1.7e-05]
+ strings-symbols = ["abc", "def", "two words"]
+ animals = ["dog", "cat", "penguin", "mountain gorilla"]
+ integers = [123, -5, 17, 1234]
+ booleans = [true, false]
byline = "bep"
[[resources]]
src = "image-4.png"
@@ -1124,10 +1124,10 @@ int = 123
str = "abc"
bool_false = false
bool_true = true
-int_list = [ 1, 2, 3 ]
-str_list = [ "a", "b", "c" ]
-bool_list = [ true, false, true, false ]
-list_of_lists = [ [ 1, 2 ], [ 3, 4, 5 ] ]
+int_list = [1, 2, 3]
+str_list = ["a", "b", "c"]
+bool_list = [true, false, true, false]
+list_of_lists = [[1, 2], [3, 4, 5]]
[map]
key1 = 123
key2 = "xyz"
diff --git a/test/tarray.el b/test/tarray.el
index 2669c7ac94..4d0e6b34bf 100644
--- a/test/tarray.el
+++ b/test/tarray.el
@@ -33,10 +33,10 @@
((numbers . (0.1 0.2 0.5 1 2 5))) ;Mixed-type arrays are allowed
))
(ref '(
- "integers = [ 1, 2, 3 ]"
- "integers2 = [ 1, 2, 3 ]"
- "colors = [ \"red\", \"yellow\", \"green\" ]"
- "numbers = [ 0.1, 0.2, 0.5, 1, 2, 5 ]"
+ "integers = [1, 2, 3]"
+ "integers2 = [1, 2, 3]"
+ "colors = [\"red\", \"yellow\", \"green\"]"
+ "numbers = [0.1, 0.2, 0.5, 1, 2, 5]"
))
out)
(dolist (el inp)
@@ -47,8 +47,8 @@
(ert-deftest test-array-of-arrays ()
(let ((inp '(((nested_arrays_of_ints . [(1 2) (3 4 5)]))
((nested_mixed_array . [(1 2) ("a" "b" "c")]))))
- (ref '("nested_arrays_of_ints = [ [ 1, 2 ], [ 3, 4, 5 ] ]"
- "nested_mixed_array = [ [ 1, 2 ], [ \"a\", \"b\", \"c\" ] ]"))
+ (ref '("nested_arrays_of_ints = [[1, 2], [3, 4, 5]]"
+ "nested_mixed_array = [[1, 2], [\"a\", \"b\", \"c\"]]"))
out)
(dolist (el inp)
(push (tomelr-encode el) out))
diff --git a/test/tplist.el b/test/tplist.el
index b49196ec6d..6e42515892 100644
--- a/test/tplist.el
+++ b/test/tplist.el
@@ -49,10 +49,10 @@
str = \"abc\"
bool_false = false
bool_true = true
-int_list = [ 1, 2, 3 ]
-str_list = [ \"a\", \"b\", \"c\" ]
-bool_list = [ true, false, true, false ]
-list_of_lists = [ [ 1, 2 ], [ 3, 4, 5 ] ]
+int_list = [1, 2, 3]
+str_list = [\"a\", \"b\", \"c\"]
+bool_list = [true, false, true, false]
+list_of_lists = [[1, 2], [3, 4, 5]]
[map]
key1 = 123
key2 = \"xyz\"
diff --git a/test/ttable.el b/test/ttable.el
index e048c46839..c84fc0bf60 100644
--- a/test/ttable.el
+++ b/test/ttable.el
@@ -56,7 +56,7 @@
"[dog]
legs = 4
eyes = 2
- friends = [ \"poo\", \"boo\" ]"
+ friends = [\"poo\", \"boo\"]"
))
out)
(dolist (el inp)
diff --git a/tomelr.el b/tomelr.el
index 1779620483..ad7906e338 100644
--- a/tomelr.el
+++ b/tomelr.el
@@ -332,7 +332,7 @@ Definition of a TOML Table Array (TTA):
(tomelr--print elt))
array))))
(t
- (insert "[ ")
+ (insert "[")
(unless (= 0 (length array))
(tomelr--with-indentation
(let ((first t))
@@ -341,8 +341,7 @@ Definition of a TOML Table Array (TTA):
(setq first nil)
(insert ", "))
(tomelr--print elt))
- array)))
- (insert " "))
+ array))))
(insert "]"))))
;;;; Print wrapper
- [elpa] externals/tomelr 3aa4dc1dbd 54/84: chore: Add Package-Requires and other info in the header comment, (continued)
- [elpa] externals/tomelr 3aa4dc1dbd 54/84: chore: Add Package-Requires and other info in the header comment, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr f3b6951cfe 53/84: doc: Add note that the scalars need to be earlier in the order, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 192cb06a23 57/84: chore(style): Whitespace change only, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 6d2be83669 69/84: chore: package-lint fixes, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 41ccea4ebe 64/84: refactor: Remove unnecessary tomelr-encode-keyword, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 406f4922a8 58/84: test: Add tests for json.el functions used in tomelr, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr b3b6a28d15 68/84: doc: Add more examples, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr f9d670e165 56/84: refactor: Clean up unused code, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 511240765b 71/84: chore: Ignore .elc files, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr ed13b73e9b 74/84: feat: Support string keys, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr de661716af 72/84: style: Remove space from after and before [ and ] brackets,
ELPA Syncer <=
- [elpa] externals/tomelr 334b7cba54 76/84: refactor: Don't attempt to triple-quote TOML keys, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr c2d1328c44 80/84: fix: Boolean coercing when value is a symbol true or false, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr ebe5959174 75/84: feat: Auto-coerce string to boolean, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr a676192b43 81/84: fix: Integer coercing of a number strings with underscores, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 8da825067b 15/84: chore(readme): Update, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 65653d53ee 30/84: chore(doc): M-x checkdoc fixes, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr bcaea16ec0 39/84: chore(doc): Clean up old code block, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 45542fb234 67/84: chore: Bump version, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 7c004af90d 66/84: style: Remove unnecessary tomelr-encode-* functions, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 568de5efb2 83/84: chore: Bump version, ELPA Syncer, 2022/05/03