Explorar o código

ox-html.el: Fix bug introduced in 077a24b

* ox-html.el (org-html-format-list-item): Check that contents in
  non-nil.
Rasmus %!s(int64=10) %!d(string=hai) anos
pai
achega
86588d6501
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/ox-html.el

+ 1 - 1
lisp/ox-html.el

@@ -2524,7 +2524,7 @@ INFO is a plist holding contextual information.  See
 			  class (concat checkbox term))
 		  "<dd>"))))
      (unless (eq type 'descriptive) checkbox)
-     (org-trim contents)
+     (and contents (org-trim contents))
      (case type
        (ordered "</li>")
        (unordered "</li>")