summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Frankel <rick@rickster.com>2014-04-16 11:11:17 -0400
committerRick Frankel <github@rickster.com>2014-04-16 21:09:57 -0400
commit93ff3e5cb7a24dffc1559cefd6996d3457683e33 (patch)
treed9ce0b6c44c748099b93dd8fb8f73711510241f2
parent2335961c4c900f86582495ed5a45cebee40f0396 (diff)
downloadorg-mode-93ff3e5cb7a24dffc1559cefd6996d3457683e33.tar.gz
Process html attributes on paragraphs.
* lisp/ox-html.el (org-html-paragraph): Add processed html attributes to paragraph tag.
-rw-r--r--lisp/ox-html.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 5ccc8e7..2665d02 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2902,6 +2902,8 @@ the plist used as a communication channel."
(let* ((parent (org-export-get-parent paragraph))
(parent-type (org-element-type parent))
(style '((footnote-definition " class=\"footpara\"")))
+ (attributes (org-html--make-attribute-string
+ (org-export-read-attribute :attr_html paragraph)))
(extra (or (cadr (assoc parent-type style)) "")))
(cond
((and (eq (org-element-type parent) 'item)
@@ -2928,7 +2930,10 @@ the plist used as a communication channel."
(label (org-element-property :name paragraph)))
(org-html--wrap-image contents info caption label)))
;; Regular paragraph.
- (t (format "<p%s>\n%s</p>" extra contents)))))
+ (t (format "<p%s%s>\n%s</p>"
+ (if (org-string-nw-p attributes)
+ (concat " " attributes) "")
+ extra contents)))))
;;;; Plain List