From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Python src blocks indent Date: Wed, 17 May 2017 15:08:03 +0200 Message-ID: <87a86br5qk.fsf@nicolasgoaziou.fr> References: <87mvabr7lj.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAygX-0005ly-4G for emacs-orgmode@gnu.org; Wed, 17 May 2017 09:08:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAygR-0002YQ-IJ for emacs-orgmode@gnu.org; Wed, 17 May 2017 09:08:13 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:40102) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dAygR-0002Y5-Bw for emacs-orgmode@gnu.org; Wed, 17 May 2017 09:08:07 -0400 In-Reply-To: (Fabrice Popineau's message of "Wed, 17 May 2017 14:45:53 +0200") 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" To: Fabrice Popineau Cc: "emacs-orgmode@gnu.org" Fabrice Popineau writes: > I mean that in the Org buffer I have for example : > > #+BEGIN_SRC ipython :session > def fact(n): > if n == 1: > return 1 > else: > return n * fact(n-1) > #+END_SRC > > That is, there is a 2 spaces indentation of the whole code block, and the > code block is properly indented. > When I export it, I get : > > def fact(n): > if n == 1: > return 1 > else: > return n * fact(n-1) FWIW I cannot reproduce it. You may want to debug `org-export-unravel-code', `org-export-format-code' or `org-export-format-code-default'. Regards,