From 74495f5b03434332424c118c121fe8a600b95a83 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 16 Jun 2024 20:53:31 +0100 Subject: Use LF line ending instead of CRLF. * varuga.el (varuga-insert-calendar-line): Use LF line ending instead of CRLF. * varuga-tests.el (actual-line-feed-in-data): Update test. --- varuga-tests.el | 2 +- varuga.el | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/varuga-tests.el b/varuga-tests.el index 14ae568..97fb817 100644 --- a/varuga-tests.el +++ b/varuga-tests.el @@ -41,7 +41,7 @@ (equal (with-temp-buffer (varuga-insert-calendar-line 'foo "foo\nbar") (buffer-string)) - "FOO:foo\\Nbar\r\n"))) + "FOO:foo\\Nbar\n"))) (ert-deftest line-limit-includes-properties () (should diff --git a/varuga.el b/varuga.el index d17e1aa..1d17779 100644 --- a/varuga.el +++ b/varuga.el @@ -84,14 +84,14 @@ KEY is the name of the ical property and VALUE is its value." (insert str) (setq octets-so-far next-octets)) (progn - (insert "\r\n ") + (insert "\n ") ;; Set octets so far to 1 to account for the ;; folding space. (setq octets-so-far 1))))) (format "%s:%s" (upcase (symbol-name key)) value))) - (insert "\r\n")) + (insert "\n")) (defun varuga-format-time-string (time) "Format TIME to ical specification." -- cgit v1.2.3