elements in manually.
((record-separator :initform "")
(field-separator :initform "")))
(defcustom ebdb-html-default-formatter-tabular
(make-instance 'ebdb-html-formatter-tabular
:label "html table"
:fields '(mail-primary))
"The default HTML table formatter."
:type 'ebdb-html-formatter-tabular)
(defcustom ebdb-html-default-formatter-html5
(make-instance 'ebdb-html-formatter-html5
:label "html5 block"
:include '(mail-primary ebdb-field-phone ebdb-field-address ebdb-field-notes))
"The default HTML5 block formatter."
:type 'ebdb-html-formatter-html5)
(cl-defmethod ebdb-fmt-header ((fmt ebdb-html-formatter-tabular)
_records)
(with-slots (fields) fmt
(concat
"\nName | "
(mapconcat
(lambda (f)
(cond
((stringp f) f)
((or (class-p f)
(eieio-object-p f))
(ebdb-fmt-field-label fmt f 'normal))
((symbolp f)
(symbol-name f))))
fields
" | ")
" | \n")))
(cl-defmethod ebdb-fmt-footer ((_fmt ebdb-html-formatter-tabular)
_records)
"\n ")
(cl-defmethod ebdb-fmt-record ((_fmt ebdb-html-formatter-tabular)
(_rec ebdb-record))
"Wrap records in |