"Charles C. Berry" <[email protected]> writes: > On Mon, 27 Feb 2017, dmg wrote: > >> On Sun, Feb 26, 2017 at 11:40 PM, Nicolas Goaziou <[email protected]> >> 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. >
Probably org-babel-min-lines-for-block-output is set to a small value, maybe 0 (?) -- Nick
