From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [Babel] Padlines Date: Fri, 27 Sep 2013 16:53:55 +0200 Message-ID: <8638oqtiws.fsf@somewhere.org> References: <87y56t7rix.fsf@gmail.com> <86pps5okk0.fsf@somewhere.org> <87siwz5gml.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <87siwz5gml.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> (Eric Schulte's message of "Fri, 20 Sep 2013 15:26:42 -0600") 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: Eric Schulte Cc: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, Eric Schulte wrote: > "Sebastien Vauban" writes: >> Eric Schulte wrote: >>> aditya siram writes: >>>> What's the rationale for having padlines by default in tangled source? It >>>> generates wrong programs for languages where whitespace is significant >>>> (Haskell) and, for me, doesn't noticeably improve the look of the tangled >>>> file in cases where it isn't. >>> >>> It is possible to change the value of default header arguments on a >>> per-language basis because e.g., while (:padlines "yes") may make sense for >>> sh, it probably doesn't for Haskell. >> >> Could it be possible that ":padline yes" does not insert a blank line in >> front of the very first block, only *between* all blocks? > > I just pushed up a commit which implements this behavior. See the > attached file for an example. > > #+Title: Examples with the new padline behavior The blank line which was inserted between blocks isn't anymore for me. ECM: --8<---------------cut here---------------start------------->8--- * Tangle these blocks :PROPERTIES: :tangle: yes :padline: yes :END: #+begin_src emacs-lisp :file test.csv "data" #+end_src #+begin_src emacs-lisp :file test.csv "datb" #+end_src --8<---------------cut here---------------end--------------->8--- results in: --8<---------------cut here---------------start------------->8--- "data" "datb" --8<---------------cut here---------------end--------------->8--- Note that I tried adding ":padline" to yes, but I normally should not, as it is the default. Best regards, Seb -- Sebastien Vauban