emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Miguel Ruiz <rbenit68@yahoo.es>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: bug in 8.2.5f for using tables as data in python?
Date: Wed, 22 Jan 2014 12:41:40 +0000 (GMT)	[thread overview]
Message-ID: <1390394500.74076.YahooMailNeo@web171303.mail.ir2.yahoo.com> (raw)
In-Reply-To: <1390394132.49030.YahooMailNeo@web171302.mail.ir2.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]



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.

[-- Attachment #2: Type: text/html, Size: 2984 bytes --]

  parent reply	other threads:[~2014-01-22 14:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22  2:33 bug in 8.2.5f for using tables as data in python? John Kitchin
2014-01-22  4:52 ` Nick Dokos
     [not found] ` <1390394132.49030.YahooMailNeo@web171302.mail.ir2.yahoo.com>
2014-01-22 12:41   ` Miguel Ruiz [this message]
2014-01-22 14:22     ` Bastien
2014-01-22 15:58       ` Miguel Ruiz
2014-01-22 16:11         ` Bastien
2014-01-22 16:39           ` John Kitchin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1390394500.74076.YahooMailNeo@web171303.mail.ir2.yahoo.com \
    --to=rbenit68@yahoo.es \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).