summaryrefslogtreecommitdiff
path: root/lisp/org/ob-awk.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/org/ob-awk.el')
-rw-r--r--lisp/org/ob-awk.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/org/ob-awk.el b/lisp/org/ob-awk.el
index 66e07bf175c..1ba0a356924 100644
--- a/lisp/org/ob-awk.el
+++ b/lisp/org/ob-awk.el
@@ -5,7 +5,6 @@
;; Author: Eric Schulte
;; Keywords: literate programming, reproducible research
;; Homepage: http://orgmode.org
-;; Version: 7.7
;; This file is part of GNU Emacs.
@@ -49,7 +48,7 @@
"Expand BODY according to PARAMS, return the expanded body."
(dolist (pair (mapcar #'cdr (org-babel-get-header params :var)))
(setf body (replace-regexp-in-string
- (regexp-quote (concat "$" (car pair))) (cdr pair) body)))
+ (regexp-quote (format "$%s" (car pair))) (cdr pair) body)))
body)
(defun org-babel-execute:awk (body params)