summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2024-06-16 20:53:31 +0100
committerArun Isaac2024-06-16 20:53:31 +0100
commit74495f5b03434332424c118c121fe8a600b95a83 (patch)
tree02306282abc94aa8a1c1ec60e2fa850dd3fa1a67
parent3aff094ed9db6ceeb8f33a5a915e7099e6e82c77 (diff)
downloadvaruga-74495f5b03434332424c118c121fe8a600b95a83.tar.gz
varuga-74495f5b03434332424c118c121fe8a600b95a83.tar.lz
varuga-74495f5b03434332424c118c121fe8a600b95a83.zip
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.
-rw-r--r--varuga-tests.el2
-rw-r--r--varuga.el4
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."