diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 145768272..694e5fc87 100644 --- a/lisp/ob-python.el +++ b/lisp/ob-python.el @@ -136,7 +136,7 @@ specifying a variable of the same value." (if (equal var 'hline) org-babel-python-hline-to (format - (if (and (stringp var) (string-match "[\n\r]" var)) "\"\"%S\"\"" "%S") + (if (and (stringp var) (string-match "[\n\r]" var)) "\"\"%s\"\"" "%s") var)))) (defun org-babel-python-table-or-string (results)