Skip to content

Commit

Permalink
use format instead of concat
Browse files Browse the repository at this point in the history
  • Loading branch information
ljos committed May 30, 2015
1 parent 4abc52d commit e0f2769
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ob-prolog.el
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@
(replace-regexp-in-string
"'" "\\'" value)))
((listp value)
(concat "[" (mapconcat #'org-babel-prolog--elisp-to-pl value ", ") "]"))
(format "[%s]"
(mapconcat #'org-babel-prolog--elisp-to-pl
value
", ")))
(t (prin1-to-string value))))

(defun org-babel-prolog--variable-assignment (pair)
Expand Down

0 comments on commit e0f2769

Please sign in to comment.