[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] bug: in source block, titles are not seen as source
From: |
Albert Krewinkel |
Subject: |
Re: [O] bug: in source block, titles are not seen as source |
Date: |
Wed, 28 May 2014 09:02:32 +0200 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux) |
Hi Ian,
Ian Kelling <address@hidden> writes:
> I've had this bug me a few times when I work with here documents in bash.
>
> #+begin_src sh
> some-command <<'EOF'
> * some text
> EOF
> #+end_src
>
> the line beginning with * is treated as a title and folded. The same
> goes for example blocks, and perhaps other things.
You can escape leading stars by putting a comma in front of them:
#+begin_src sh
cat <<'EOF'
,* some text
EOF
#+end_src
This should do what you want.
HTH,
Albert
--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124