Function: icalendar--clean-up-line-endings
icalendar--clean-up-line-endings is a byte-compiled function defined
in icalendar.el.gz.
Signature
(icalendar--clean-up-line-endings)
Documentation
Replace DOS- and MAC-like line endings with unix line endings.
All occurrences of (CR LF) and (LF CF) are replaced with LF in the current buffer. This is necessary in buffers which contain a mix of different line endings.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar.el.gz
(defun icalendar--clean-up-line-endings ()
"Replace DOS- and MAC-like line endings with unix line endings.
All occurrences of (CR LF) and (LF CF) are replaced with LF in
the current buffer. This is necessary in buffers which contain a
mix of different line endings."
(save-excursion
(goto-char (point-min))
(while (re-search-forward "\r\n\\|\n\r" nil t)
(replace-match "\n" nil nil))))