emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] bug in 8.2.5f for using tables as data in python?


From: Miguel Ruiz
Subject: Re: [O] bug in 8.2.5f for using tables as data in python?
Date: Wed, 22 Jan 2014 12:41:40 +0000 (GMT)


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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]