Browse Source

ob-python.el (org-babel-python-var-to-python): Bugfix

* ob-python.el (org-babel-python-var-to-python): Bugfix: Strip
properties before formatting the results.

Thanks to Daniel Gerber for reporting this and providing a fix,
and to others who contributed.
Bastien Guerry 11 years ago
parent
commit
dac6d880b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob-python.el

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