all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Different behavior of exported results in org-babel
Date: Fri, 17 Jan 2014 19:32:17 -0500	[thread overview]
Message-ID: <87wqhyi0z2.fsf@gmail.com> (raw)
In-Reply-To: CAP8THHViJXrsYi574AHGzM3-y-F8hTsAz6z3e0sDVMtUaxq_AQ@mail.gmail.com

Ahmadou Dicko <dicko.ahmadou@gmail.com> writes:

> As a workaround I will use your trick (in buffer evaluation before
> exporting) but I was thinking of writing a filter.

A better workaround is to delete the white space (spaces, tabs and
newlines) at the end of the file: without that, the problem goes away.
If white space is added to the end of the file, the problem might
reappear, with different amounts of junk added depending on the amount
of added white space.

I have traced it down to org-babel-exp-process-buffer: it does the
deletions of the source code blocks (possibly putting them back again
if the header args tell it to) but it does not always delete the right
region. More details later.

Nick

  parent reply	other threads:[~2014-01-18  0:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-17 16:36 Different behavior of exported results in org-babel Ahmadou Dicko
2014-01-17 19:04 ` Nick Dokos
2014-01-17 19:19   ` Ahmadou Dicko
2014-01-17 19:59     ` Nick Dokos
2014-01-18  0:32     ` Nick Dokos [this message]
2014-01-18 14:43       ` Nicolas Goaziou
2014-01-18 21:07         ` Ahmadou Dicko

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

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

  git send-email \
    --in-reply-to=87wqhyi0z2.fsf@gmail.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.