浏览代码

ox-html: Fix 9a34a1

* lisp/ox-html.el (org-html-paragraph): Only apply special rule in
  list items.

Thanks to Richard Lawrence for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90532
Nicolas Goaziou 10 年之前
父节点
当前提交
1a7c9d7d79
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ox-html.el

+ 2 - 1
lisp/ox-html.el

@@ -2896,7 +2896,8 @@ the plist used as a communication channel."
 		      (org-export-read-attribute :attr_html paragraph)))
 	 (extra (or (cadr (assoc parent-type style)) "")))
     (cond
-     ((and (not (org-export-get-previous-element paragraph info))
+     ((and (eq parent-type 'item)
+	   (not (org-export-get-previous-element paragraph info))
 	   (let ((followers (org-export-get-next-element paragraph info 2)))
 	     (and (not (cdr followers))
 		  (memq (org-element-type (car followers)) '(nil plain-list)))))