From 1a7c9d7d79f9f9071c36808a825f8bb2770c9ab2 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 6 Sep 2014 19:03:18 +0200 Subject: [PATCH] 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 --- lisp/ox-html.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 822299bd8..9e642055b 100644 --- a/lisp/ox-html.el +++ b/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)))))