Browse Source

ox-html: Fix missing <span> block around section number

* lisp/ox-html.el (org-html-headline): Add <span> element around
  section number.

http://permalink.gmane.org/gmane.emacs.orgmode/89369
Nicolas Goaziou 10 years ago
parent
commit
6ba05e3200
1 changed files with 4 additions and 2 deletions
  1. 4 2
      lisp/ox-html.el

+ 4 - 2
lisp/ox-html.el

@@ -2371,8 +2371,10 @@ holding contextual information."
 			 extra-ids "")
 			(concat
 			 (and numberedp
-			      (concat (mapconcat #'number-to-string numbers ".")
-				      " "))
+			      (format
+			       "<span class=\"section-number-%d\">%s</span> "
+			       level
+			       (mapconcat #'number-to-string numbers ".")))
 			 full-text)
 			level)
 		;; When there is no section, pretend there is an empty