From mboxrd@z Thu Jan 1 00:00:00 1970 From: Antti Kaihola Subject: Re: Re: [babel] [BUG] incorrect indentation when tangling with org-src-preserve-indentation Date: Fri, 15 Oct 2010 10:14:49 +0300 Message-ID: References: <87bp6z8nrp.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=43036 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6eVA-0004sa-Ho for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 03:14:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6eV9-0005CP-5l for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 03:14:52 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:56970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6eV9-0005CI-2Y for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 03:14:51 -0400 Received: by gwj21 with SMTP id 21so304398gwj.0 for ; Fri, 15 Oct 2010 00:14:50 -0700 (PDT) In-Reply-To: <87bp6z8nrp.fsf@stats.ox.ac.uk> 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: Dan Davison Cc: emacs-orgmode@gnu.org 2010/10/12 Dan Davison : > Thanks for the report and patches. I've just pushed a modification of > your patch, along the lines of > > - =A0 "\n" (org-babel-trim body) "\n")) > + =A0 "\n" (org-babel-trim body (if org-src-preserve-indentation "[\f\n\r= \v]")) "\n")) > > Thus spaces and tabs should no longer be trimmed when > `org-src-preserve-indentation' is non-nil. Hopefully this fixes things. Yes, your patch along with Eric's fix seems to do the job. Python code is now tangled correctly. Great!