From 2f82ee771acf390c0923db4d39d0f9f3745de5fb Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Mon, 26 Oct 2009 21:34:07 -0400 Subject: [PATCH] org-babel: use %s to format inline result when it is a string. This avoids returning quote characters with the string. --- contrib/babel/lisp/org-babel-exp.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/babel/lisp/org-babel-exp.el b/contrib/babel/lisp/org-babel-exp.el index dfa50e70..47e2b0dc 100644 --- a/contrib/babel/lisp/org-babel-exp.el +++ b/contrib/babel/lisp/org-babel-exp.el @@ -143,8 +143,10 @@ options are taken from `org-babel-default-header-args'." ((member "code" result-params) (format "src_%s{%s}" lang raw)) (t - (if (and (stringp raw) (= 0 (length raw))) - " =(no results)= " (format " =%S= " raw)))))) + (if (stringp raw) + (if (= 0 (length raw)) "=(no results)=" + (format "=%s=" raw)) + (format "=%S=" raw)))))) ('block (save-excursion ;; org-exp-blocks places us at the end of the block (re-search-backward org-babel-src-block-regexp nil t) -- 2.11.4.GIT