[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug report: export to HTML does not escape * in example
From: |
Nick Dokos |
Subject: |
Re: [O] Bug report: export to HTML does not escape * in example |
Date: |
Mon, 27 Feb 2017 14:04:02 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
"Charles C. Berry" <address@hidden> writes:
> On Mon, 27 Feb 2017, dmg wrote:
>
>> On Sun, Feb 26, 2017 at 11:40 PM, Nicolas Goaziou <address@hidden>
>> 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