emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Charles C. Berry" <ccberry@ucsd.edu>
To: dmg <dmg@turingmachine.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>,
	Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: Bug report: export to HTML does not escape * in example
Date: Mon, 27 Feb 2017 09:57:13 -0800	[thread overview]
Message-ID: <alpine.OSX.2.20.1702270935360.918@charles-berrys-macbook.local> (raw)
In-Reply-To: <CAEBXXD_JhHRej3Mxf7=o7vr68=6rL+OJTU4tq924-8NtZdt2eg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 932 bytes --]

On Mon, 27 Feb 2017, dmg wrote:

> On Sun, Feb 26, 2017 at 11:40 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
> wrote:
>
>>
>> A star at the beginning of a line is always a headline.

[...]

>
> ​Thank you. I guess the issue is then with org-babel.
>
> I am running a babel script that generates, as one of its line * in the
> front:
>
> ​#+BEGIN_SRC sh
> echo "* Hello"
> #+END_SRC
>
> #+RESULTS:
> #+begin_example
> * Hello
> #+end_example
>
> ​In that case, should babel be the one escaping the * in the RESULTS block?

Is that *really* what it did?

When I run your example, I get:

#+RESULTS:
: * Hello

and this exports (with the `:exports results' header) to html wrapped 
in a <pre class="example"> container:

<pre class="example">
* Hello
</pre>

using Org 9.0.5.

Without that header the src code gets wrapped in a <pre> container.

So there must be something in/about your setup you haven't mentioned.

HTH,

Chuck

  reply	other threads:[~2017-02-27 17:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-27  1:00 Bug report: export to HTML does not escape * in example dmg
2017-02-27  7:40 ` Nicolas Goaziou
2017-02-27  8:24   ` dmg
2017-02-27 17:57     ` Charles C. Berry [this message]
2017-02-27 19:04       ` Nick Dokos
2017-03-01 20:04       ` D M German
2017-03-01 21:20         ` Nicolas Goaziou
2017-03-03 19:06           ` Charles C. Berry
2017-03-05 17:06             ` Nicolas Goaziou

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=alpine.OSX.2.20.1702270935360.918@charles-berrys-macbook.local \
    --to=ccberry@ucsd.edu \
    --cc=dmg@turingmachine.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).