emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Strip text properties from string code block arguments
@ 2014-01-07 17:26 Daniel Gerber
  2014-01-07 17:31 ` Bastien
  2014-01-08 16:31 ` Bastien
  0 siblings, 2 replies; 12+ messages in thread
From: Daniel Gerber @ 2014-01-07 17:26 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

This change in org-babel-python-var-to-python makes python code blocks 
accept a string with text properties (as one gets when referring another 
code block). I guess there should be something similar for other languages.

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.

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-01-12 23:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-07 17:26 [PATCH] Strip text properties from string code block arguments Daniel Gerber
2014-01-07 17:31 ` Bastien
2014-01-07 19:21   ` Achim Gratz
2014-01-08  8:47     ` Bastien
2014-01-08 10:03   ` Daniel Gerber
2014-01-08 16:31 ` Bastien
2014-01-08 17:27   ` Daniel Gerber
2014-01-08 17:32     ` Bastien
2014-01-09 20:39     ` Achim Gratz
2014-01-12 11:43       ` Bastien
2014-01-12 16:35         ` Eric Schulte
2014-01-12 23:28           ` Bastien

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).