From bf9bf7a17469acf442e61f2b6317dbce2067dc0d Mon Sep 17 00:00:00 2001 From: Brad Knotwell Date: Tue, 22 Jan 2019 08:49:46 -0800 Subject: [PATCH] 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 --- lisp/ob-lua.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-lua.el b/lisp/ob-lua.el index 6b438b4f9..70d328ecf 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)