Could it be a poorly rewritten patch? Original Daniel Gerber's proposal works for me.


diff --git a/lisp/ob-python.el b/lisp/ob-python.el
index 1457682..523fd70 100644 (file)
--- a/lisp/ob-python.el
+++ b/lisp/ob-python.el
@@ -137,7 +137,7 @@ specifying a variable of the same value."
        org-babel-python-hline-to
       (format
        (if (and (stringp var) (string-match "[\n\r]" var)) "\"\"%S\"\"" "%S")
-       var))))
+       (substring-no-properties var)))))
 
 (defun org-babel-python-table-or-string (results)
   "Convert RESULTS into an appropriate elisp value.


vs


http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg00286.html
diff --git a/lisp/ob-python.el b/lisp/ob-python.el
index 1457682..baa5764 100644
--- a/lisp/ob-python.el
+++ b/lisp/ob-python.el
@@ -137,7 +137,7 @@ specifying a variable of the same value."
        org-babel-python-hline-to
       (format

(if (and (stringp var) (string-match "[\n\r]" var)) "\"\"%S\"\"" "%S")

-       var))))
+       (if (stringp var) (substring-no-properties var) var)))))

 (defun org-babel-python-table-or-string (results)
   "Convert RESULTS into an appropriate elisp value.


Miguel.