emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Giovanni@reflections.co.nz
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Bug: subtree export fails with src block
Date: Mon, 04 Oct 2010 07:21:53 -0600	[thread overview]
Message-ID: <87d3rq9jpq.fsf@gmail.com> (raw)
In-Reply-To: <70a0cde5cbf513c515de12aa486b29cd.squirrel@webmail.godzone.net.nz> (Giovanni Moretti's message of "Mon, 4 Oct 2010 16:02:32 +1300")

Hi Giovanni,

I'm unable to reproduce your bug.  I can successfully export the
following to html w/o issue.

--8<---------------cut here---------------start------------->8---
Now let's see what happens:

#+begin_src python :results output :exports both
print "Babel"
limits = [1,2,3,4,5,6,7,8,9,10]

for i in limits:
  print "Hello" * i
#+end_src python
--8<---------------cut here---------------end--------------->8---

Are you using the latest version of Org-mode?  Could you try exporting
the above and see if it works for you.

some more comments inline below.

"Giovanni Moretti" <Giovanni@reflections.co.nz> writes:

> I'm just starting with Babel and have been puzzled about why one file
> worked and another didn't.
>
> I have been playing in a new file without any headers at all (no lines
> starting with '*') and while I could execute the code in the buffer,
> exporting to HTML always failed with:
>
>    No such file: c:/org/babel-python-test.org::
>

Hmm, it looks like it's trying to find a file with "::" attached to the
end which is probably the source of the issue.  I wonder if this is a
windows specific problem?

>
> When searching, I found this thread and wondered if the heading were
> important. It turns out they are. In the block below, exporting to HTML
> fails if the first line isn't a heading.
>
> This seems like a clue ...
>
> Cheers and thanks
> Giovanni
>
> PS: the BOTH option for :export is hard to find - only :export none is in
> the intro page.
>

The documentation [1] is the place to look for header arguments and
their usage, but I suppose we should mention that more explicitly (at
all?)  from the introduction page.

Best -- Eric

>
> ===============================
> * Python Babel test
>
> Now let's see what happens:
>
> #+begin_src python :results output :exports both
> print "Babel"
> limits = [1,2,3,4,5,6,7,8,9,10]
>
> for i in limits:
>   print "Hello" * i
> #+end_src python
> ================================
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Footnotes: 
[1]  http://orgmode.org/manual/Working-With-Source-Code.html#Working-With-Source-Code

  reply	other threads:[~2010-10-04 13:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-04  3:02 Re: Bug: subtree export fails with src block Giovanni Moretti
2010-10-04 13:21 ` Eric Schulte [this message]
2010-10-04 13:48   ` Eric Schulte
2010-10-04 15:02     ` Jörg Hagmann
2010-10-04 15:06       ` Eric Schulte
2010-10-05  7:07         ` Jörg Hagmann
  -- strict thread matches above, loose matches on Subject: below --
2010-09-23  7:13 Christian Moe
2010-09-23  7:25 ` Noorul Islam K M
2010-09-23 15:17   ` Eric Schulte
2010-09-23 18:22     ` Christian Moe

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=87d3rq9jpq.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=Giovanni@reflections.co.nz \
    --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 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).