From 2124e2b0049d95f6ee9cfe56766bd07d96939eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20A=2E=20Gomes?= Date: Fri, 8 Oct 2021 19:43:54 +0300 Subject: [PATCH 38/76] Deprecate org-html--format-toc-headline. Not deprecated since the function is internal. --- lisp/ox-html.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 4adf43423..cd25d0557 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2313,7 +2313,7 @@ is an element defining the scope of the table. Return the table of contents as a string, or nil if it is empty." (let ((toc-entries (mapcar (lambda (heading) - (cons (org-html--format-toc-headline heading info) + (cons (org-html--format-toc-heading heading info) (org-export-get-relative-level heading info))) (org-export-collect-headings info depth scope)))) (when toc-entries @@ -2357,7 +2357,7 @@ and value is its relative level, as an integer." toc-entries "") (org-html--make-string (- prev-level start-level) "\n\n")))) -(defun org-html--format-toc-headline (heading info) +(defun org-html--format-toc-heading (heading info) "Return an appropriate table of contents entry for HEADING. INFO is a plist used as a communication channel." (let* ((heading-number (org-export-get-heading-number heading info)) -- 2.33.0