From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: [BUG] [Babel] Quotes-in-strings not being escaped in python, breaking output Date: Tue, 09 Nov 2010 11:07:49 -0600 Message-ID: <87k4kmjuhm.fsf@dustycloud.org> References: <87tyjqjuwy.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=57574 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFrfK-0003oK-Je for emacs-orgmode@gnu.org; Tue, 09 Nov 2010 12:07:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFrfJ-00073V-9j for emacs-orgmode@gnu.org; Tue, 09 Nov 2010 12:07:26 -0500 Received: from li28-75.members.linode.com ([75.127.72.75]:53159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFrfJ-00073N-64 for emacs-orgmode@gnu.org; Tue, 09 Nov 2010 12:07:25 -0500 Received: from grumps (localhost [127.0.0.1]) by li28-75.members.linode.com (Postfix) with ESMTP id 2DC51C90E for ; Tue, 9 Nov 2010 17:07:24 +0000 (UTC) In-Reply-To: <87tyjqjuwy.fsf@dustycloud.org> (Christopher Allan Webber's message of "Tue, 09 Nov 2010 10:58:37 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org It looks like \' and " are not being escaped in org-babel-python-table-or-string, which is the problem. Christopher Allan Webber writes: > Strings with quotes in them aren't having the inner quotes escaped right > while read by ob-python in python. Example: > > #+BEGIN_SRC python > return [['607', 'Show license short name on the deed'], > ['255', '"Smart" 404 pages']] > #+END_SRC > > #+results: > | 607 | Show license short name on the deed | | | > | 255 | | Smart | 404 pages | > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode