From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wOcSDuY/QmPH6wAAbAwnHQ (envelope-from ) for ; Sun, 09 Oct 2022 05:28:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YNItDuY/QmNRbAEA9RJhRA (envelope-from ) for ; Sun, 09 Oct 2022 05:28:38 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DF27CEADB for ; Sun, 9 Oct 2022 05:28:37 +0200 (CEST) Received: from localhost ([::1]:54940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohMzV-00052I-0Z for larch@yhetil.org; Sat, 08 Oct 2022 23:28:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohMz1-000525-8P for emacs-orgmode@gnu.org; Sat, 08 Oct 2022 23:28:07 -0400 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]:35484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohMyz-0007P9-AG for emacs-orgmode@gnu.org; Sat, 08 Oct 2022 23:28:06 -0400 Received: by mail-pg1-x531.google.com with SMTP id u71so269918pgd.2 for ; Sat, 08 Oct 2022 20:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=j2rRQ3cETu68tp328IpUF/eKOGytd9C8sgZprelgkHw=; b=fMFg7XaswBJc3ZrvbiESbqIPfHrWF2YR2/DmqIDeMFOuKeXOJtRY9N61C3PJIGCigT Ha6Ul0Y++U+Bb2iF6h01KeAF5R3si8mWSjOqGY0KTex6CXUuBLTxyhIuuxPtpi9SAord q1CEbRolkA4aotPppOxkk8HG1a0X3doML1YUbbRWh5LO8j5dZJ4vy3COhVntpleizFoH GS8N+A1xtT4RqVbTYIeKrgTBXQ0R8wzIb676SMDhF0OyBiXRbpkBUHoDbrX8OdV5E8p0 AqOMeP0YRRkreDIDQQUSAAP69JkKnKzN8MZMTY5RT6+jJRWMtnj+XN1lDhdp5FE7KVJM B86w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j2rRQ3cETu68tp328IpUF/eKOGytd9C8sgZprelgkHw=; b=ke4KdHRhIHzp13PEIXu54cCYyK43myiC0I3vM4b4delP83rMJJoRS/l84sV93Gx7Xf N0whq0d95W0KK6l4q9C1MsYbhs+jW8Pn5ohHVUbrnlGkaCv+Osv9rlnWD/zL9MEmY9GA R+2AyYCGFDSi4HHB6jtfr269k4HigepPpQ3mGnKcNPoAbXrt6pfrRv4u6/rNzBZfwHfQ VeUAng5Ov0dg4H29aWhlch/fOKqrT78R/2f27vbX3/jt/q1+yObarkbyZ9LfYLjwQX0k D5MEbqGNSiMKKjveoIbGr1q4Lz+gYUU3F6xii5JdqfwCpZW7AspXISPDL3eRWPhLVUod guzA== X-Gm-Message-State: ACrzQf1utYYJloGCQklwPn2zPV/tzfLHCDSnM/aNlMTM6WgwX5tzcvtp iD63rCjc9sO6+bKXkcdM0kE= X-Google-Smtp-Source: AMsMyM6FVr4kI5GXLcbTIUPcndtZkPRyhur2cayMpPLNVcz2pOxI+Orwgj0/nqWlImwnq03qVbuSZg== X-Received: by 2002:a05:6a00:1da1:b0:563:2e07:db1b with SMTP id z33-20020a056a001da100b005632e07db1bmr1675840pfw.22.1665286083755; Sat, 08 Oct 2022 20:28:03 -0700 (PDT) Received: from localhost ([2409:8970:af2:32f:6c23:3ad5:f37d:541b]) by smtp.gmail.com with ESMTPSA id i7-20020a628707000000b00562303ff59dsm4164223pfe.48.2022.10.08.20.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Oct 2022 20:28:03 -0700 (PDT) From: Ihor Radchenko To: Joshua Honeycutt Cc: emacs-orgmode@gnu.org 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/)] In-Reply-To: References: Date: Sun, 09 Oct 2022 11:28:54 +0800 Message-ID: <87fsfxfzex.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=yantar92@gmail.com; helo=mail-pg1-x531.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665286118; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=j2rRQ3cETu68tp328IpUF/eKOGytd9C8sgZprelgkHw=; b=lWYS7dgcSfn3uBSkptHXHY57NSalx+BYdIZMiBz4mPh/banKLLRH7JScvvjb6HDC78+dXm BATIv1GuQJRz52ef4KU2XaghlIf2PJ+tfvdBjxumHFz95WIIUGAf5xJzYdGcYBJqCue5uh FpHGSuKK0y05eBAc9SkTnQo9QNqNvMMVijqfU6+uI0H99PBUPBGbJThtaifcNNruhTHIZf 45W8bPBffQCIm59awRgp38l8ppe9/VuVH9SgPuGWSR7W1z+GaFUI6owFcbbJwnWmAYOVG2 oq9sbxH/vvD4331KngCLxdfLJVib0TQGChY0xNSJAKpITh9nxJUy5HU3KO/7pg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665286118; a=rsa-sha256; cv=none; b=VpBrWAY1rejCBSn9316XEBUR13vI68OknPku719QKP3ln4ZOd91fJWtsu8F+crPAQLacy5 Nqnf2qB1gPsNpfXtWSBiIFNSZ26g2WtajAjYL9cWNfHE3UI02NAk0QaDTJ0ZZX3H8yGACP XkX5gRnDdJdug87B56AMGheQUJanlQdhSZ0/jQTGvLmg3DOMErRE/rPNRlE8pq3sSjfaoe d6XrasS50xW/Drm58DxrViTMM56eVOWEIM+wvD9djdAzxQMLkRyOkle/hv7wMv+RowGxXc oKM0xFqXUSXvzXl7mse3qPxeb9lhsQWMOEkUHNV2p6CDg+1t2u5pAY4EiOuQZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fMFg7Xas; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.89 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fMFg7Xas; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: DF27CEADB X-Spam-Score: -6.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: X7hSYjEFNw26 Joshua Honeycutt 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: > >
>
> but the output was instead:
>
>    
>
> 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 
 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 .
Support Org development at ,
or support my work at 

Confirmed.