diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4b64b0615..8e80c4237 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 2009-07-27 Bastien Guerry + * org-html.el (org-export-html-footnote-format): New option for + formatting the footnote reference. + (org-export-as-html): Use the new option. + * org.el (org-provide-todo-statistics): Allow a list of TODO keywords to compute statistics against headlines containing a keyword from this list. diff --git a/lisp/org-html.el b/lisp/org-html.el index 60afe9f20..46323620c 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -31,6 +31,11 @@ (declare-function org-id-find-id-file "org-id" (id)) (declare-function htmlize-region "ext:htmlize" (beg end)) +(defgroup org-export-html nil + "Options specific for HTML export of Org-mode files." + :tag "Org Export HTML" + :group 'org-export) + (defcustom org-export-html-footnotes-section "

%s:

@@ -44,10 +49,11 @@ by the footnotes themselves." :group 'org-export-html :type 'string) -(defgroup org-export-html nil - "Options specific for HTML export of Org-mode files." - :tag "Org Export HTML" - :group 'org-export) +(defcustom org-export-html-footnote-format "%s" + "The format for the footnote reference. +%s will be replaced by the footnote reference itself." + :group 'org-export-html + :type 'string) (defcustom org-export-html-coding-system nil "Coding system for HTML export, defaults to buffer-file-coding-system." @@ -1175,7 +1181,9 @@ lang=\"%s\" xml:lang=\"%s\"> (setq line (replace-match (format - "%s%s" + (concat "%s" + (format org-export-html-footnote-format + "%s")) (match-string 1 line) n extra n n) t t line))))))