Fixed #241, wrap plain list with <form> when exporing HTML checkbox in order to display the checkbox selection properly.

This commit is contained in:
yujie 2016-10-27 16:55:00 +08:00
parent ce6b9c3e4e
commit 87d3c25ae4
1 changed files with 4 additions and 2 deletions

View File

@ -902,11 +902,13 @@ Extract and set `attr_html' to plain-list tag attributes."
(unordered "ul")
(descriptive "dl")))
(attrs (org-export-read-attribute :attr_html plain-list)))
(format "<%s%s>\n%s\n</%s>"
(format "%s<%s%s>\n%s\n</%s>%s"
(if (string= org-html-checkbox-type 'html) "<form>" "")
tag
(if attrs (concat " " (org-html--make-attribute-string attrs)) "")
contents
tag)))
tag
(if (string= org-html-checkbox-type 'html) "</form>" ""))))
(defun org-reveal--build-pre/postamble (type info)
"Return document preamble or postamble as a string, or nil."