From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lennart Fricke Subject: Re: Bug: python babel does not support hlines as mentioned in docs Date: Mon, 29 Oct 2012 18:44:26 +0100 Message-ID: <874nlddvgl.fsf@tee.lan> References: <87ehkhdx08.fsf@tee.lan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TStOB-0001r9-01 for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 13:44:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TStOA-0006Go-1I for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 13:44:38 -0400 Received: from plane.gmane.org ([80.91.229.3]:60366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TStO9-0006Gc-Qb for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 13:44:37 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TStOE-0000Uw-Vm for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 18:44:42 +0100 Received: from 178-24-204-58-dynip.superkabel.de ([178.24.204.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Oct 2012 18:44:42 +0100 Received: from pge08aqw by 178-24-204-58-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Oct 2012 18:44:42 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain This patch makes None being treated as hline again. Best regards Lennart Fricke --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=python-hlines.patch 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))) --=-=-=--