From 184e0cf3c219e7e0266e19e26eb81b39f548df98 Mon Sep 17 00:00:00 2001 From: Tim Vaughan Date: Thu, 2 May 2019 16:38:39 +0200 Subject: [PATCH] Add support for non-conformant (LF only) line breaks in directories. --- elpher.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elpher.el b/elpher.el index a910317..7add720 100644 --- a/elpher.el +++ b/elpher.el @@ -292,7 +292,7 @@ content and cursor position fields of the node." (defun elpher-insert-index (string) "Insert the index corresponding to STRING into the current buffer." - (dolist (line (split-string string "\r\n")) + (dolist (line (split-string (replace-regexp-in-string "\r" "" string) "\n")) (unless (= (length line) 0) (elpher-insert-index-record line)))) -- 2.20.1