Function: html2text-fix-paragraphs
html2text-fix-paragraphs is an interactive and byte-compiled function
defined in html2text.el.gz.
Signature
(html2text-fix-paragraphs)
Documentation
This _tries_ to fix up the paragraphs - this is done in quite a ad-hook fashion, quite close to pure guess-work. It does work in some cases though.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/html2text.el.gz
;;
;; This one is interactive ...
;;
(defun html2text-fix-paragraphs ()
"This _tries_ to fix up the paragraphs - this is done in quite a ad-hook
fashion, quite close to pure guess-work. It does work in some cases though."
(interactive)
(goto-char (point-min))
(while (re-search-forward "^<br>$" nil t)
(delete-region (match-beginning 0) (match-end 0)))
;; Removing lonely <br> on a single line, if they are left intact we
;; don't have any paragraphs at all.
(goto-char (point-min))
(while (not (eobp))
(let ((p1 (point)))
(forward-paragraph 1)
;;(message "Kaller fix med p1=%s p2=%s " p1 (1- (point))) (sleep-for 5)
(html2text-fix-paragraph p1 (1- (point)))
(goto-char p1)
(when (not (eobp))
(forward-paragraph 1)))))