* bug: in source block, titles are not seen as source
@ 2014-05-28 4:13 Ian Kelling
2014-05-28 7:02 ` Albert Krewinkel
0 siblings, 1 reply; 3+ messages in thread
From: Ian Kelling @ 2014-05-28 4:13 UTC (permalink / raw)
To: emacs-orgmode
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.
as a workaround, I can insert a tab char, and change the redirection
operator to <<- to strip leading tabs
some-command <<-'EOF'
* some text
EOF
- Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bug: in source block, titles are not seen as source
2014-05-28 4:13 bug: in source block, titles are not seen as source Ian Kelling
@ 2014-05-28 7:02 ` Albert Krewinkel
2014-05-28 14:52 ` Ian Kelling
0 siblings, 1 reply; 3+ messages in thread
From: Albert Krewinkel @ 2014-05-28 7:02 UTC (permalink / raw)
To: Ian Kelling; +Cc: emacs-orgmode
Hi Ian,
Ian Kelling <ian@iankelling.org> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bug: in source block, titles are not seen as source
2014-05-28 7:02 ` Albert Krewinkel
@ 2014-05-28 14:52 ` Ian Kelling
0 siblings, 0 replies; 3+ messages in thread
From: Ian Kelling @ 2014-05-28 14:52 UTC (permalink / raw)
To: Albert Krewinkel; +Cc: emacs-orgmode
Albert Krewinkel <tarleb@moltkeplatz.de> writes:
> Hi Ian,
>
> 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
Ahh, thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-28 14:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-28 4:13 bug: in source block, titles are not seen as source Ian Kelling
2014-05-28 7:02 ` Albert Krewinkel
2014-05-28 14:52 ` Ian Kelling
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).