From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GDDFOPUr0GaOFQEA62LTzQ:P1 (envelope-from ) for ; Thu, 29 Aug 2024 08:06:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id GDDFOPUr0GaOFQEA62LTzQ (envelope-from ) for ; Thu, 29 Aug 2024 10:06:14 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=Xs00DS6h; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724918773; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=iWgQ9u34X+NJzaT44xyZtu1/sqvpOvAHPU2CraYymok=; b=J4XQbWEm/1LQ8xnVXaClnuG7ScHua8q6Rl23nDp8FTvtFQCcUa5jMLHsGpd1Nta79rix6B jFWi6gPdVIJWthpVGWmyjbdN0TkylN679BUnh0oACIWdew2X1hpSGmxtFkprQ2PoA7mNuw rFXAL4j9a13bK9d6GnZZi+qS92tkQ+RvnVA2dumlT8Kc5qtOfsfgTcb2F+UyEFRv/m+QC7 rgVyui0JVq+rciH/MQAGWA1F0PsbhqX95acE122poqBrbPKrbE980GCQuYCuhIKHERKKoC nLzWMOiNfMcGLngnZzYzMv2rOrymzCkx5ltVIInR/ZOXY3qC6/kaivUlndUU1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=Xs00DS6h; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724918773; a=rsa-sha256; cv=none; b=P+Q7DTv8hRi14Qci3mUovoGCaLd7kK4xT3nLSMZLA4xE+XtLdDULl+HXNLPpAwSLkFFK0K 58mO1BlQe2kf75lLZ+y12lvWKSfBPIN8oHqANxfC7lLcotZ1gUidUYiEa1NB79HIlw2NXR BaajIOJc9DEAGXrr32IGwH3/b8UVCjD8N6QFRdiGImf/tF44FVJmx5AHT2+IM0oQaJN9sg lvz9Nj+UooLL255n7M0QWHNyIPFymT9VC3wdaE7bRjAEYr1uG2RWtC+mqe0Z0AEg+eBPnm qdvfQABcpWiS6QzMHixgTftUkemytwWOTGFbUfp/DSMF9O0K2nByVSRYM+PnCA== 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 A4C926A74B for ; Thu, 29 Aug 2024 10:06:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sja9X-0004iY-3y; Thu, 29 Aug 2024 04:05:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1siMaZ-00088j-Vc for emacs-orgmode@gnu.org; Sun, 25 Aug 2024 19:24:03 -0400 Received: from mail-vk1-xa34.google.com ([2607:f8b0:4864:20::a34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1siMaY-0004WI-5c for emacs-orgmode@gnu.org; Sun, 25 Aug 2024 19:24:03 -0400 Received: by mail-vk1-xa34.google.com with SMTP id 71dfb90a1353d-4fceb60e169so1398940e0c.3 for ; Sun, 25 Aug 2024 16:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724628240; x=1725233040; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=5jRsAmQ/Oh/JhP+putDhF4vDJAY3Bd6cnaXBiyfDAqI=; b=Xs00DS6hsYF4PbpeI7rKaQhPIpreKuEESHHixzT1MgPsdM5FVvkmUBcrNB3sE9BrKP nwoDSJYgEKy2YRAUQf2xS61bE6tbCx3bSbavb7Yc5xYJvS3Wz+yWGxV1/h9w7k0KdsNU 2S+IJ0XOUHZNuHTVLnTehD8KP4g67LwEu3LjU71ERZhuha9Rg1jEt7qffbtYUgxnti7i Qz4BHRIU5PKEsh4nKwOrpHqkGfIwFrGnwDWWXAneQYUEtYNYV9yGVncJGd2ct6KbBUuo yVPb8d5NR43qE/+cVkDOQZYOc6YVejdsa6mtCDl194bbX3ybgl9gFx/T+05gkGGXO/JI aE3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724628240; x=1725233040; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5jRsAmQ/Oh/JhP+putDhF4vDJAY3Bd6cnaXBiyfDAqI=; b=HEdLak+WNbSV5gsZ/F6sWVwTDG7Zqtcg/JYk/SGgsTpf/IAzOahH3qY+rwd5Ndwx8u XPiRL8LgeFYVvmEI6c1eLyzPRk9tLA3RrMTsZ/s6lFVtvxzxCfQYpwAMEgpfE6Uc9SOp WZriI7QGoKrIJbhwH/g/M58cI2H1jgbT+XT5VcUxP39cmXWhFDClDj8A+Ao3hXExql39 2ko7wKIFu7tz5OP51UfBRsmq31RXOvOo11dynoy0QvcTEsaBh5BYilBxPfbDQFoD+JU8 3fT+gbjlTsQzfI0pNprZzJqyXB41DrrFsZzN3YKLsM8/jOvL9T7jDz26pOO++4aajmSY HelQ== X-Gm-Message-State: AOJu0YwzS9ZefYw6+SG5OUiI5kkcjWkgxFXRZjz9T6kmXKpyfbHAISYF lvjo1xHIl42FA8FW1Hxsn6KTCMHMgpPM6mVtz5a4PYP2syfNvvRM2beiSFdvYVH1Lk07+HA0Ymw fr+73L7QQdD/OfupTdm4Zx1bttwunuNU7 X-Google-Smtp-Source: AGHT+IHijlL84+Pc5kwFB2u089cpR2f22B+Vkg41RTWix+ub4N7XJWeAww7gZwUjkD1KmzUuPsaNg3Q5BnjlgsjX5MQ= X-Received: by 2002:a05:6122:309f:b0:4fc:e6e2:ab44 with SMTP id 71dfb90a1353d-4fd1ad6a7c7mr10624709e0c.13.1724628240474; Sun, 25 Aug 2024 16:24:00 -0700 (PDT) MIME-Version: 1.0 From: Daniel Radetsky Date: Sun, 25 Aug 2024 16:23:49 -0700 Message-ID: Subject: Adding a class to the auto-inserted
elements To: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="000000000000a4c73706208a4d85" Received-SPF: pass client-ip=2607:f8b0:4864:20::a34; envelope-from=dradetsky@gmail.com; helo=mail-vk1-xa34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 29 Aug 2024 04:05:09 -0400 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: A4C926A74B X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.28 X-Spam-Score: -3.28 X-TUID: 2VlrHm51WL95 --000000000000a4c73706208a4d85 Content-Type: multipart/alternative; boundary="000000000000a4c73406208a4d83" --000000000000a4c73406208a4d83 Content-Type: text/plain; charset="UTF-8" So I was exporting an Org doc to html the other day, and I was trying to follow this guide to make the list elements appear as a comma-separated list https://markheath.net/post/css-comma-separated-list It didn't work, and I discovered this was because Org adds a
element to the
  • element if the
  • element is created from an Org headline element. The easiest way to fix this and allow the aforementioned guide to work is by ensuring that all those
    elements have `display: none` set via CSS. To make this easier and/or reduce the risk of accidentally removing other elements, we can add a class name to those
    's the way we do to other elements. I have included an example change. This is just the simplest possible solution. Obviously if someone thinks a more complicated/featureful solution is required, we can do more stuff. --dmr --000000000000a4c73406208a4d83 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
    So I was exporting an Org doc to html the other day, and I was trying to= follow this guide to make the list elements appear as a comma-separated li= st


    It didn't work, and I discovered this was be= cause Org adds a <br> element to the <li> element if the <li= > element is created from an Org headline element. The easiest way to fi= x this and allow the aforementioned guide to work is by ensuring that all t= hose <br> elements have `display: none` set via CSS. To make this eas= ier and/or reduce the risk of accidentally removing other elements, we can = add a class name to those <br>'s the way we do to other elements.=

    I have inclu= ded an example change. This is just the simplest possible solution. Obvious= ly if someone thinks a more complicated/featureful solution is required, we= can do more stuff.

    --dmr
    --000000000000a4c73406208a4d83-- --000000000000a4c73706208a4d85 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-lisp-ox-html.el-Add-class-to-auto-inserted-br-tag.patch" Content-Disposition: attachment; filename="0001-lisp-ox-html.el-Add-class-to-auto-inserted-br-tag.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_m0a7473e0 RnJvbSBlMzVlMTQ2OGMwODdlYTA5YmJmOWEyZDY5OTE0MDFkMmM1YmJhYzM5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEYW5pZWwgUmFkZXRza3kgPGRyYWRldHNreUBnbWFpbC5jb20+ CkRhdGU6IFN1biwgMjUgQXVnIDIwMjQgMTY6MTE6MTUgLTA3MDAKU3ViamVjdDogW1BBVENIXSBs aXNwL294LWh0bWwuZWw6IEFkZCBjbGFzcyB0byBhdXRvIGluc2VydGVkIGJyIHRhZwoKQWRkcyAu b3JnLWhlYWRpbmctbGktYnIgdG8gdGhlIGJyIGluc2VydGVkIGF0IHRoZSBlbmQgb2YgbGkgaWYg dGhlIGxpIGlzCmV4cG9ydGVkIGZyb20gYSBoZWFkbGluZS4gVGhpcyBhbGxvd3MgdGhlIHVzZXIg dG8gbWF0Y2ggdGhvc2Ugc3BlY2lmaWMKZWxlbWVudHMgd2l0aCBjc3Mgc2VsZWN0b3JzIHRvIHN0 eWxlL2Rpc2FibGUgdGhlbS4KLS0tCiBsaXNwL294LWh0bWwuZWwgfCAyICstCiAxIGZpbGUgY2hh bmdlZCwgMSBpbnNlcnRpb24oKyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9saXNwL294 LWh0bWwuZWwgYi9saXNwL294LWh0bWwuZWwKaW5kZXggOTViMTU0ZGM1Li4zZTI4OTRjOTggMTAw NjQ0Ci0tLSBhL2xpc3Avb3gtaHRtbC5lbAorKysgYi9saXNwL294LWh0bWwuZWwKQEAgLTI5Njcs NyArMjk2Nyw3IEBAIHN5bWJvbHMgYG9uJywgYG9mZicsIG9yIGB0cmFucycuICAgSU5GTyBpcyB0 aGUgaW5mbyBwbGlzdC4iCiAJCQkgICAoc3ltYm9sLW5hbWUgY2hlY2tib3gpKSAiIikpCiAJKGNo ZWNrYm94IChjb25jYXQgKG9yZy1odG1sLWNoZWNrYm94IGNoZWNrYm94IGluZm8pCiAJCQkgIChh bmQgY2hlY2tib3ggIiAiKSkpCi0JKGJyIChvcmctaHRtbC1jbG9zZS10YWcgImJyIiBuaWwgaW5m bykpCisJKGJyIChvcmctaHRtbC1jbG9zZS10YWcgImJyIiAiY2xhc3M9XCJvcmctaGVhZGluZy1s aS1iclwiIiBpbmZvKSkKIAkoZXh0cmEtbmV3bGluZSAoaWYgKGFuZCAob3JnLXN0cmluZy1udy1w IGNvbnRlbnRzKSBoZWFkbGluZSkgIlxuIiAiIikpKQogICAgIChjb25jYXQKICAgICAgKHBjYXNl IHR5cGUKLS0gCjIuNDUuMgoK --000000000000a4c73706208a4d85--