From e35e1468c087ea09bbf9a2d6991401d2c5bbac39 Mon Sep 17 00:00:00 2001 From: Daniel Radetsky Date: Sun, 25 Aug 2024 16:11:15 -0700 Subject: [PATCH] lisp/ox-html.el: Add class to auto inserted br tag Adds .org-heading-li-br to the br inserted at the end of li if the li is exported from a headline. This allows the user to match those specific elements with css selectors to style/disable them. --- lisp/ox-html.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 95b154dc5..3e2894c98 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2967,7 +2967,7 @@ symbols `on', `off', or `trans'. INFO is the info plist." (symbol-name checkbox)) "")) (checkbox (concat (org-html-checkbox checkbox info) (and checkbox " "))) - (br (org-html-close-tag "br" nil info)) + (br (org-html-close-tag "br" "class=\"org-heading-li-br\"" info)) (extra-newline (if (and (org-string-nw-p contents) headline) "\n" ""))) (concat (pcase type -- 2.45.2