diff options
author | Brad Knotwell <bknotwell@yahoo.com> | 2019-01-22 08:49:46 -0800 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-01-30 23:42:32 +0100 |
commit | bf9bf7a17469acf442e61f2b6317dbce2067dc0d (patch) | |
tree | 5b0e320d83d9bf2763db747e27dfa27fda8017aa | |
parent | d3d9e0bfc031ab5b6764e3989de43b6fd9a0030a (diff) | |
download | org-mode-bf9bf7a17469acf442e61f2b6317dbce2067dc0d.tar.gz |
ob-lua: Fix multi-line :var input
* lisp/ob-lua.el (org-babel-lua-var-to-lua): Support multi-line :var
input using Lua's [=[ ... ]=] syntax instead of the syntactically
invalid and pythonesque """.
TINYCHANGE
-rw-r--r-- | lisp/ob-lua.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-lua.el b/lisp/ob-lua.el index 6b438b4..70d328e 100644 --- a/lisp/ob-lua.el +++ b/lisp/ob-lua.el @@ -148,7 +148,7 @@ specifying a variable of the same value." (if (eq var 'hline) org-babel-lua-hline-to (format - (if (and (stringp var) (string-match "[\n\r]" var)) "\"\"%S\"\"" "%S") + (if (and (stringp var) (string-match "[\n\r]" var)) "[=[%s]=]" "%S") (if (stringp var) (substring-no-properties var) var))))) (defun org-babel-lua-table-or-string (results) |