From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug report: export to HTML does not escape * in example Date: Mon, 27 Feb 2017 14:04:02 -0500 Message-ID: <8760jvh2vx.fsf@alphaville.usersys.redhat.com> References: <87h93gdqts.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciQat-0001UE-EN for emacs-orgmode@gnu.org; Mon, 27 Feb 2017 14:04:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciQap-0005o3-Gx for emacs-orgmode@gnu.org; Mon, 27 Feb 2017 14:04:23 -0500 Received: from [195.159.176.226] (port=50980 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciQap-0005nz-AW for emacs-orgmode@gnu.org; Mon, 27 Feb 2017 14:04:19 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ciQac-00081f-R0 for emacs-orgmode@gnu.org; Mon, 27 Feb 2017 20:04:06 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org "Charles C. Berry" writes: > On Mon, 27 Feb 2017, dmg wrote: > >> On Sun, Feb 26, 2017 at 11:40 PM, Nicolas Goaziou >> 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
 container:
>
> 
> * Hello
> 
> > using Org 9.0.5. > > Without that header the src code gets wrapped in a
 container.
>
> So there must be something in/about your setup you haven't mentioned.
>

Probably org-babel-min-lines-for-block-output is set to a small value,
maybe 0 (?)

-- 
Nick