From 1c3bdbb80a143664ca719a8a8b439390c42e28a2 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Mon, 23 Jun 2014 17:33:18 -0400 Subject: [PATCH] inhibit

wraps on a whole-list basis * lisp/ox-html.el (org-html-paragraph): Extend the special case of inhibiting

wrappers to only perform such inhibition when *every* element of the list is a single paragraph long. Otherwise unsightly spacing results. --- lisp/ox-html.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 762e1dc85..df392a94c 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2956,8 +2956,17 @@ the plist used as a communication channel." (cond ((and (eq (org-element-type parent) 'item) (= (org-element-property :begin paragraph) - (org-element-property :contents-begin parent))) - ;; Leading paragraph in a list item have no tags. + (org-element-property :contents-begin parent)) + (not (org-element-map (org-export-get-parent parent) 'item + (lambda (item) + (let ((contents (org-element-contents item))) + (and contents + (or (cdr contents) + (not (eq (org-element-type (car contents)) + 'paragraph)))))) + info 'first-match 'item))) + ;; Leading paragraph in a list item have no tags if every + ;; element of the containing list is only a single paragraph. contents) ((org-html-standalone-image-p paragraph info) ;; Standalone image.