From mboxrd@z Thu Jan 1 00:00:00 1970 From: D M German Subject: Re: Bug report: export to HTML does not escape * in example Date: Wed, 01 Mar 2017 12:04:55 -0800 Message-ID: <87mvd4226w.fsf@turingmachine.org> References: <87h93gdqts.fsf@nicolasgoaziou.fr> Reply-To: dmg@turingmachine.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjAUi-000897-DI for emacs-orgmode@gnu.org; Wed, 01 Mar 2017 15:05:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjAUe-0001e7-VC for emacs-orgmode@gnu.org; Wed, 01 Mar 2017 15:05:04 -0500 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]:36432) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjAUe-0001a2-Qb for emacs-orgmode@gnu.org; Wed, 01 Mar 2017 15:05:00 -0500 Received: by mail-pf0-x231.google.com with SMTP id x66so14080360pfb.3 for ; Wed, 01 Mar 2017 12:04:58 -0800 (PST) In-Reply-To: (Charles C. Berry's message of "Mon, 27 Feb 2017 09:57:13 -0800") 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: "Charles C. Berry" Cc: emacs-orgmode , Nicolas Goaziou =20 Hi Charles, everybody, >> I am running a babel script that generates, as one of its line * in the >> front: >>=20 >> =E2=80=8B#+BEGIN_SRC sh >> echo "* Hello" >> #+END_SRC >>=20 >> #+RESULTS: >> #+begin_example >> * Hello >> #+end_example >>=20 >> =E2=80=8BIn that case, should babel be the one escaping the * in the RE= SULTS block? Charles> Is that *really* what it did? Charles> When I run your example, I get: Charles> #+RESULTS: Charles> : * Hello Charles> and this exports (with the `:exports results' header) to html wra= pped in a
 container:

 Charles> 
 Charles> * Hello
 Charles> 
Charles> using Org 9.0.5. Charles> Without that header the src code gets wrapped in a
 containe=
r.

 Charles> So there must be something in/about your setup you haven't mentio=
ned.

 Charles> HTH,

 Charles> Chuck




I looked a bit into my configuration. In my configuration, I set the value =
of=20
org-babel-min-lines-for-block-output to 0.

The default value of this variable is by default 10.

When the number of lines in the output is larger than it, it uses
EXAMPLE blocks rather than the escaped ones.

So the original issue (* not being escaped) will nonetheless appear when
the threshold is passed:

Here is an example (I run it with emacs -nw -q, using emacs25) org
version 8.2.10 (this works also in my configuration under 9.0.2)

#+BEGIN_SRC emacs-lisp :results output
(dotimes (i 2) (print '*hello))
#+END_SRC

#+RESULTS:
:=20
: *hello
:=20
: *hello


#+BEGIN_SRC emacs-lisp :results output
(dotimes (i 10) (print '*hello))
#+END_SRC

#+RESULTS:
#+begin_example

*hello

*hello

*hello

*hello

*hello
#+end_example


=20

thank you all again,

--
Daniel M. German                  "Cyberspace. A consensual hallucination
                                   experienced daily by billions
   William Gibson ->               of legitimate operators in every nation"
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .