Function: html2text-clean-list-items
html2text-clean-list-items is a byte-compiled function defined in
html2text.el.gz.
Signature
(html2text-clean-list-items P1 P2 LIST-TYPE)
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/html2text.el.gz
;;
;; </Functions related to attributes>
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; <Functions to be called to format a tag-pair>
;;
(defun html2text-clean-list-items (p1 p2 list-type)
(goto-char p1)
(let ((item-nr 0)
(items 0))
(while (search-forward "<li>" p2 t)
(setq items (1+ items)))
(goto-char p1)
(while (< item-nr items)
(setq item-nr (1+ item-nr))
(search-forward "<li>" (point-max) t)
(cond
((string= list-type "ul") (insert " o "))
((string= list-type "ol") (insert (format " %s: " item-nr)))
(t (insert " x "))))))