Browse Source

ob-sh: Better escaping of variables with spaces.

* lisp/ob-sh.el (org-babel-sh-var-to-sh): Better escaping of variables
  with spaces.
Eric Schulte 10 years ago
parent
commit
19a0ca3182
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob-sh.el

+ 1 - 1
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))))