emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Roland DONAT <roland.donat@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Babel : python generate org source block with an extra comma before * characters
Date: Sun, 13 Jul 2014 13:51:57 +0000 (UTC)	[thread overview]
Message-ID: <loom.20140713T153456-604@post.gmane.org> (raw)

Dear Orgmode community,

Thanks in advance to take some time to help me with my problem...

Here is what is making me very sad :

I have a python (python 3 interpreter) source block that I use to generate 
parts of a report written in Orgmode. Suppose we have this little example :

#+NAME: test
#+BEGIN_SRC python :results value org :session test

report = """*** header 1
My pretty report

*** header 2
Ah ah! With that stuff, I will increase my *productivity*!!!
"""

report
#+END_SRC

What I get is :
#+RESULTS: test
#+BEGIN_SRC org
,*** header 1
My pretty report

,*** header 2
Ah ah, with that stuff, I will increase my *productivity*!!!
#+END_SRC

My question : Why Orgmode adds the comma before the star character???

In the manual, I read some things about comma-escaping in Org source block 
so my intuition tells me that my problem has something to do with that but I 
wasn't able to solve it for now.

My configuration :
- Org 8.2.5h on Linux Mint 16. 
- Python 3

Any help would be much appreciated! Thanks.

Roland.

             reply	other threads:[~2014-07-13 13:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-13 13:51 Roland DONAT [this message]
2014-07-13 14:37 ` Babel : python generate org source block with an extra comma before * characters Thorsten Jolitz
2014-07-13 18:07   ` Roland DONAT
2014-07-14  0:15     ` Thorsten Jolitz
2014-07-15 15:35       ` Roland DONAT

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=loom.20140713T153456-604@post.gmane.org \
    --to=roland.donat@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 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).