From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Prevent creating empty lines with trailing spaces when tangling noweb Date: Sat, 06 May 2017 09:23:07 +0200 Message-ID: <87tw4yfnz8.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6u3g-0001Tj-PV for emacs-orgmode@gnu.org; Sat, 06 May 2017 03:23:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6u3c-0006V3-SP for emacs-orgmode@gnu.org; Sat, 06 May 2017 03:23:16 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:35564) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d6u3c-0006QF-MA for emacs-orgmode@gnu.org; Sat, 06 May 2017 03:23:12 -0400 In-Reply-To: (Kaushal Modi's message of "Sat, 06 May 2017 06:30:45 +0000") 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: Kaushal Modi Cc: emacs-org list Hello, Kaushal Modi writes: > Notice that the empty line is created between noweb segments as expected > because of ":noweb-sep "\\n\\n"". But what was unexpected to me was the > creation of empty line with spaces inserted to match the indentation. > > Is this by design? I lean towards "yes". > If it is by design, I would propose to have a new switch called something > like ":noweb-notrailingspc" (would like a better suggestion for this switch > name). I don't think this is necessary. This is but a corner-case. That doesn't require a dedicated switch. I'd rather clean every empty line upon tangling, or let the user do it with `org-babel-post-tangle-hook'. Regards, -- Nicolas Goaziou