Skip to content

Commit 1357c98

Browse files
Update README.org
1 parent 5164b2f commit 1357c98

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.org

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Emacs can access many RDBMS systems via their command-line utilities using SQLi/
1010
For instance, to reformat an org-mode table, do the following:
1111
#+BEGIN_SRC emacs-lisp
1212
(let ((to-format
13-
"| Foo | Bar |
13+
"
14+
| Foo | Bar |
1415
|-----+-----|
1516
| 1 | 2 |
1617
| 3 | 4 |"))
@@ -43,10 +44,15 @@ New formats can be added by adding them to `format-table-format-alist' at runtim
4344

4445
Currently only exporting/importing arrays of hashes is supported. For instance, that previous org table:
4546

47+
#+BEGIN_SRC emacs-lisp
48+
(let ((to-format
49+
"
4650
| Foo | Bar |
4751
|-----+-----|
4852
| 1 | 2 |
49-
| 3 | 4 |
53+
| 3 | 4 |"))
54+
(format-table to-format 'org 'json))
55+
#+END_SRC
5056

5157
Will render as:
5258
#+BEGIN_SRC javascript

0 commit comments

Comments
 (0)