[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scratch/sqlite c89fa88: Handle newlines in listing

From: Lars Ingebrigtsen
Subject: scratch/sqlite c89fa88: Handle newlines in listing
Date: Tue, 14 Dec 2021 21:55:41 -0500 (EST)

branch: scratch/sqlite
commit c89fa88ca11b605c177934e0e5b992e806536090
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Handle newlines in listing
 lisp/emacs-lisp/multisession.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/multisession.el b/lisp/emacs-lisp/multisession.el
index f986c2c..f47a915 100644
--- a/lisp/emacs-lisp/multisession.el
+++ b/lisp/emacs-lisp/multisession.el
@@ -381,7 +381,8 @@ storage method to list."
                      (cons (car elem) (cadr elem))
                      (vector (car elem) (cadr elem)
-                             (format "%s" (caddr elem)))))
+                             (string-replace "\n" "\\n"
+                                             (format "%s" (caddr elem))))))
                   (multisession--backend-values multisession-storage)))
     (tabulated-list-print t)
     (goto-char (point-min))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]