diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2010-12-13 13:56:03 -0700 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2010-12-13 13:56:03 -0700 |
commit | 19a0ca3182f8cf4e9b73e1145bc44b10d495f560 (patch) | |
tree | 8ea3e91d6b1d6bf93ac01372e874511f46e39dc2 | |
parent | e3aeb07a17ee90e8e370caee2f213b7625bd95a1 (diff) | |
download | org-mode-19a0ca3182f8cf4e9b73e1145bc44b10d495f560.tar.gz |
ob-sh: Better escaping of variables with spaces.
* lisp/ob-sh.el (org-babel-sh-var-to-sh): Better escaping of variables
with spaces.
-rw-r--r-- | lisp/ob-sh.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-sh.el b/lisp/ob-sh.el index e153d68..cd5a386 100644 --- a/lisp/ob-sh.el +++ b/lisp/ob-sh.el @@ -105,7 +105,7 @@ var of the same value." (deep-string (if (listp (car var)) var (list var))) (list :sep (or sep "\t"))))) (if (stringp var) - (if (string-match "[\n\r]" var) + (if (string-match "[ \t\n\r]" var) (format "$(cat <<BABEL_STRING\n%s\nBABEL_STRING\n)" var) (format "%s" var)) (format "%S" var)))) |