Browse Source

more robust sbe macro

Eric Schulte 11 years ago
parent
commit
ca56230fc1
1 changed files with 5 additions and 3 deletions
  1. 5 3
      lisp/ob-table.el

+ 5 - 3
lisp/ob-table.el

@@ -97,9 +97,11 @@ as shown in the example below.
 				(lambda (el)
 				  (if (eq '$ el)
 				      (prog1 nil (setq quote t))
-				    (prog1 (if quote
-					       (format "\"%s\"" el)
-					     (org-no-properties el))
+				    (prog1
+					(cond
+					 (quote (format "\"%s\"" el))
+					 ((stringp el) (org-no-properties el))
+					 (t el))
 				      (setq quote nil))))
 				(cdr var)))))
 	     variables)))