Browse Source

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

* ox-html.el (org-html-format-list-item): Check that contents in
  non-nil.
Rasmus 10 years ago
parent
commit
86588d6501
1 changed files with 1 additions and 1 deletions
  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>")