[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: python babel does not support hlines as mentioned in docs
From: |
Lennart Fricke |
Subject: |
Re: [O] Bug: python babel does not support hlines as mentioned in docs |
Date: |
Mon, 29 Oct 2012 18:44:26 +0100 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.1 (gnu/linux) |
This patch makes None being treated as hline again.
Best regards
Lennart Fricke
diff --git a/lisp/ob-python.el b/lisp/ob-python.el
index 71adf73..a1f834f 100644
--- a/lisp/ob-python.el
+++ b/lisp/ob-python.el
@@ -123,7 +123,11 @@ specifying a variable of the same value."
"Convert RESULTS into an appropriate elisp value.
If the results look like a list or tuple, then convert them into an
Emacs-lisp table, otherwise return the results as a string."
- (org-babel-script-escape results))
+ ((lambda (res)
+ (if (listp res)
+ (mapcar (lambda (el) (if (equal el 'None) 'hline el)) res)
+ res))
+ (org-babel-script-escape results)))
(defvar org-babel-python-buffers '((:default . nil)))