From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: Re: [Babel] Padlines Date: Tue, 1 Oct 2013 14:57:38 +0900 Message-ID: <20131001055738.GB941@smoon> References: <87y56t7rix.fsf@gmail.com> <86pps5okk0.fsf@somewhere.org> <87siwz5gml.fsf@gmail.com> <8638oqtiws.fsf@somewhere.org> <87ioxlw22w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="OXfL5xGRrasGEqWY" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQsy2-0005r9-5P for emacs-orgmode@gnu.org; Tue, 01 Oct 2013 01:58:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQsxt-0002XM-Lu for emacs-orgmode@gnu.org; Tue, 01 Oct 2013 01:57:54 -0400 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:42113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQsxt-0002XH-D5 for emacs-orgmode@gnu.org; Tue, 01 Oct 2013 01:57:45 -0400 Received: by mail-la0-f54.google.com with SMTP id ea20so5319447lab.41 for ; Mon, 30 Sep 2013 22:57:43 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87ioxlw22w.fsf@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, ** Eric Schulte [2013-09-28 06:17:51 -0600]: >> 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 > Hi Seb, > Thanks for this bug report, there was a problem in my previous patch in > this thread. I've just pushed up a fix which should solve this problem. And seems that you miss another 'padline' in function 'org-babel-spec-to-string', line 323. I attached small patch which removes that line so I can tangle Org document with shell scripts. --- WBR, Vladimir Lomov -- Coming to Stores Near You: 101 Grammatically Correct Popular Tunes Featuring: (You Aren't Anything but a) Hound Dog It Doesn't Mean a Thing If It Hasn't Got That Swing I'm Not Misbehaving And A Whole Lot More... --OXfL5xGRrasGEqWY Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="ob-tangle.patch" diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 63d0a47..f655711 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -322,7 +322,6 @@ that the appropriate major-mode is set. SPEC has the form: (insert-comment (lambda (text) (when (and comments (not (string= comments "no")) (> (length text) 0)) - (when padline (insert "\n")) (comment-region (point) (progn (insert text) (point))) (end-of-line nil) (insert "\n"))))) (when comment (funcall insert-comment comment)) --OXfL5xGRrasGEqWY--