* source block name contains "call"
@ 2017-03-18 1:06 Skip Collins
2017-03-18 9:36 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Skip Collins @ 2017-03-18 1:06 UTC (permalink / raw)
To: emacs-org list
I am editing some Perl. When I export any source block that includes
the word "call" in the name, it causes the verbatim formatting to be
dropped. This happens with both html and latex exports. The problem
does not seem to be limited to Perl. A minimal example:
* foo
#+name: call_foo
#+begin_src perl
## This is a comment
#+end_src
* bar
#+name: bar
#+begin_src perl
## This is a comment
#+end_src
The code under the first heading is exported as normal org text,
omitting the #+name and #+begin_src lines, but including the #+end_src
line. The second heading is exported as expected, with the source
block properly formatted verbatim. The word "call" seems to be the
trigger for the bad behavior.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: source block name contains "call"
2017-03-18 1:06 source block name contains "call" Skip Collins
@ 2017-03-18 9:36 ` Nicolas Goaziou
2017-03-18 17:47 ` Skip Collins
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2017-03-18 9:36 UTC (permalink / raw)
To: Skip Collins; +Cc: emacs-org list
Hello,
Skip Collins <skip.collins@gmail.com> writes:
> I am editing some Perl. When I export any source block that includes
> the word "call" in the name, it causes the verbatim formatting to be
> dropped. This happens with both html and latex exports. The problem
> does not seem to be limited to Perl. A minimal example:
>
> * foo
>
> #+name: call_foo
> #+begin_src perl
>
> ## This is a comment #+end_src
>
> * bar
>
> #+name: bar
> #+begin_src perl
>
> ## This is a comment
> #+end_src
>
> The code under the first heading is exported as normal org text,
> omitting the #+name and #+begin_src lines, but including the #+end_src
> line. The second heading is exported as expected, with the source
> block properly formatted verbatim. The word "call" seems to be the
> trigger for the bad behavior.
This reminds me of https://www.xkcd.com/327/
Fixed. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-18 17:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-18 1:06 source block name contains "call" Skip Collins
2017-03-18 9:36 ` Nicolas Goaziou
2017-03-18 17:47 ` Skip Collins
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).