Joshua Honeycutt <joshua.honeyc...@gmail.com> writes:

> I added a class attribute to an example block as in:
>
>    #+ATTR_HTML :class cmdout
>    #+BEGIN_EXAMPLE
>    text text text
>    #+END_EXAMPLE
>
> I expected this to produce a html tag like:
>
>    <pre class="cmdout example">
>
> but the output was instead:
>
>    <pre class="example" class="cmdout">
>
> In my browser this second class assignment was ignored.
>
> org-html-example-block could instead add the 'example' class to other
> attributes which get placed in the <pre> tag. I modified it to achieve
> this outcome like this (from be2246a550b444560ec1718c11185ac7bfcfa646):

Thanks for reporting!
Would you mind creating a proper patch under your name?
See https://orgmode.org/worg/org-contribute.html#first-patch

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Confirmed.

  • [no subject] Joshua Honeycutt
    • Re: Bug: org-html-example-block can produce multiple... Ihor Radchenko

Reply via email to