132c132 < (mapcar #'cdr (org-babel-get-header params :var)))) --- > (org-babel--get-vars params))) 292,312c292,312 < (case result-type < (output (org-babel-eval org-babel-lua-command < (concat (if preamble (concat preamble "\n")) < body))) < (value (let ((tmp-file (org-babel-temp-file "lua-"))) < (org-babel-eval < org-babel-lua-command < (concat < (if preamble (concat preamble "\n") "") < (format < (if (member "pp" result-params) < org-babel-lua-pp-wrapper-method < org-babel-lua-wrapper-method) < (mapconcat < (lambda (line) (format "\t%s" line)) < (split-string < (org-remove-indentation < (org-babel-trim body)) < "[\r\n]") "\n") < (org-babel-process-file-name tmp-file 'noquote)))) < (org-babel-eval-read-file tmp-file)))))) --- > (pcase result-type > (`output (org-babel-eval org-babel-lua-command > (concat (if preamble (concat preamble "\n")) > body))) > (`value (let ((tmp-file (org-babel-temp-file "lua-"))) > (org-babel-eval > org-babel-lua-command > (concat > (if preamble (concat preamble "\n") "") > (format > (if (member "pp" result-params) > org-babel-lua-pp-wrapper-method > org-babel-lua-wrapper-method) > (mapconcat > (lambda (line) (format "\t%s" line)) > (split-string > (org-remove-indentation > (org-trim body)) > "[\r\n]") "\n") > (org-babel-process-file-name tmp-file 'noquote)))) > (org-babel-eval-read-file tmp-file)))))) 315c315 < (org-babel-lua-table-or-string (org-babel-trim raw))))) --- > (org-babel-lua-table-or-string (org-trim raw))))) 369c369 < #'org-babel-trim --- > #'org-trim