summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-01-12 23:25:25 (GMT)
committer Bastien Guerry <bzg@altern.org>2014-01-12 23:25:25 (GMT)
commitdac6d880b7233fb345f3bbeebc79b1729daf9682 (patch)
treeffd2bf471660302505fac91cd409c73962716f0e
parentbf0649c6fc2c059d32b3b36fcbd616447c32b4db (diff)
downloadorg-mode-dac6d880b7233fb345f3bbeebc79b1729daf9682.zip
org-mode-dac6d880b7233fb345f3bbeebc79b1729daf9682.tar.gz
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.
-rw-r--r--lisp/ob-python.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-python.el b/lisp/ob-python.el
index 1457682..523fd70 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))))
+ (substring-no-properties var)))))
(defun org-babel-python-table-or-string (results)
"Convert RESULTS into an appropriate elisp value.