Function: cal-html-htmlify-entry

cal-html-htmlify-entry is a byte-compiled function defined in cal-html.el.gz.

Signature

(cal-html-htmlify-entry ENTRY &optional CLASS)

Documentation

Convert a diary entry ENTRY to html with the appropriate class specifier.

Optional argument CLASS is the class specifier to use.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/cal-html.el.gz
(defun cal-html-htmlify-entry (entry &optional class)
  "Convert a diary entry ENTRY to html with the appropriate class specifier.
Optional argument CLASS is the class specifier to use."
  (let ((start
         (cond
          (class)
          ((string-match "block" (nth 2 entry)) "BLOCK")
          ((string-match "anniversary" (nth 2 entry)) "ANN")
          ((not (string-match
                 (number-to-string (nth 2 (car entry)))
                 (nth 2 entry)))
           "NO-YEAR")
          (t "NORMAL"))))
    (format "<span class=%s>%s</span>" start
            (cal-html-htmlify-string (cadr entry)))))