emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vladimir Lomov <lomov.vl@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [Babel] Padlines
Date: Tue, 1 Oct 2013 14:57:38 +0900	[thread overview]
Message-ID: <20131001055738.GB941@smoon> (raw)
In-Reply-To: <87ioxlw22w.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1408 bytes --]

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...

[-- Attachment #2: ob-tangle.patch --]
[-- Type: text/x-diff, Size: 532 bytes --]

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))

  parent reply	other threads:[~2013-10-01  5:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17 22:36 [Babel] Padlines aditya siram
2013-09-18  7:32 ` Sebastien Vauban
2013-09-18 21:23 ` Eric Schulte
2013-09-18 22:02   ` Sebastien Vauban
2013-09-20 21:26     ` Eric Schulte
2013-09-23  7:31       ` Sebastien Vauban
     [not found]       ` <87siwz5gml.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-09-27 14:53         ` Sebastien Vauban
2013-09-28 12:17           ` Eric Schulte
2013-09-30  8:54             ` Sebastien Vauban
2013-10-01 10:28               ` Rainer M Krug
2013-10-01 11:59                 ` Eric Schulte
2013-10-01 12:53                   ` Rainer M Krug
2013-10-01  5:57             ` Vladimir Lomov [this message]
2013-10-01 11:59               ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131001055738.GB941@smoon \
    --to=lomov.vl@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).