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