Function: icalendar-format-child-spec

icalendar-format-child-spec is a byte-compiled function defined in icalendar-macs.el.gz.

Signature

(icalendar-format-child-spec CHILD-SPEC)

Documentation

Format CHILD-SPEC as a table for use in symbol documentation.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-macs.el.gz
;; Some utilities:

(defun ical:format-child-spec (child-spec)
  "Format CHILD-SPEC as a table for use in symbol documentation."
  (concat
   (format "%-30s%6s\n" "Type" "Number")
   (make-string 36 ?-) "\n"
   (mapconcat
    (lambda (type) (format "%-30s%-6s\n" (format "`%s'" type) "1"))
    (plist-get child-spec :one))
   (mapconcat
    (lambda (type) (format "%-30s%-6s\n" (format "`%s'" type) "1+"))
    (plist-get child-spec :one-or-more))
   (mapconcat
    (lambda (type) (format "%-30s%-6s\n" (format "`%s'" type) "0-1"))
    (plist-get child-spec :zero-or-one))
   (mapconcat
    (lambda (type) (format "%-30s%-6s\n" (format "`%s'" type) "0+"))
    (plist-get child-spec :zero-or-more))))