Function: org-html-table-row
org-html-table-row is a byte-compiled function defined in
ox-html.el.gz.
Signature
(org-html-table-row TABLE-ROW CONTENTS INFO)
Documentation
Transcode a TABLE-ROW element from Org to HTML.
CONTENTS is the contents of the row. INFO is a plist used as a communication channel.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-html.el.gz
;;;; Table Row
(defun org-html-table-row (table-row contents info)
"Transcode a TABLE-ROW element from Org to HTML.
CONTENTS is the contents of the row. INFO is a plist used as a
communication channel."
;; Rules are ignored since table separators are deduced from
;; borders of the current row.
(when (eq (org-element-property :type table-row) 'standard)
(let* ((group (org-export-table-row-group table-row info))
(number (org-export-table-row-number table-row info))
(start-group-p
(org-export-table-row-starts-rowgroup-p table-row info))
(end-group-p
(org-export-table-row-ends-rowgroup-p table-row info))
(topp (and (equal start-group-p '(top))
(equal end-group-p '(below top))))
(bottomp (and (equal start-group-p '(above))
(equal end-group-p '(bottom above))))
(row-open-tag
(pcase (plist-get info :html-table-row-open-tag)
((and accessor (pred functionp))
(funcall accessor
number group start-group-p end-group-p topp bottomp))
(accessor accessor)))
(row-close-tag
(pcase (plist-get info :html-table-row-close-tag)
((and accessor (pred functionp))
(funcall accessor
number group start-group-p end-group-p topp bottomp))
(accessor accessor)))
(group-tags
(cond
;; Row belongs to second or subsequent groups.
((not (= 1 group)) '("<tbody>" . "\n</tbody>"))
;; Row is from first group. Table has >=1 groups.
((org-export-table-has-header-p
(org-export-get-parent-table table-row) info)
'("<thead>" . "\n</thead>"))
;; Row is from first and only group.
(t '("<tbody>" . "\n</tbody>")))))
(concat (and start-group-p (car group-tags))
(concat "\n"
row-open-tag
contents
"\n"
row-close-tag)
(and end-group-p (cdr group-tags))))))