ob-table: Fix org-sbe's handling of quotes in cell values
commit5b59e16c9ea7ffa04ab71f8d37f8b8677e89f735
authorVladimir Panteleev <git@thecybershadow.net>
Mon, 19 Mar 2018 00:23:12 +0000 (19 00:23 +0000)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 19 Mar 2018 23:01:05 +0000 (20 00:01 +0100)
tree2628fdc105edfe11589931bdc22e650fc4bcfd77
parente1f1acbbfb07ca49f857672a1f0648052753568f
ob-table: Fix org-sbe's handling of quotes in cell values

* ob-table.el (org-sbe): org-sbe did the wrong thing when given a
reference to a cell containing quotes or backslashes, because it would
simply wrap any $-prefixed value in quotes, without any escaping. Fix
this by using "%S" (instead of "\"%s\"").

* test-ob-table.el: Add test.
lisp/ob-table.el
testing/lisp/test-ob-table.el