emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug: org-html-example-block can produce multiple class attributes [9


From: Ihor Radchenko
Subject: Re: Bug: org-html-example-block can produce multiple class attributes [9.4 (9.4-dist @/usr/share/emacs/site-lisp/elpa/org-9.4/)]
Date: Sun, 09 Oct 2022 11:28:54 +0800

Joshua Honeycutt <joshua.honeycutt@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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]