emacs-diffs
[Top][All Lists]
Advanced

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

master 52528d6: Print newlines as \n instead of \12 in ERT results


From: Mattias Engdegård
Subject: master 52528d6: Print newlines as \n instead of \12 in ERT results
Date: Fri, 25 Jun 2021 13:57:26 -0400 (EDT)

branch: master
commit 52528d6a162630a57ec0dd182295b4ce2c4c228d
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Print newlines as \n instead of \12 in ERT results
    
    This makes test errors unquestionably more readable.  The change also
    makes FF print as \f; other controls still use octal escapes.
    
    * lisp/emacs-lisp/ert.el (ert--pp-with-indentation-and-newline):
    Run `pp` with `pp-escape-newlines` set to `t`.
---
 lisp/emacs-lisp/ert.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index 7de07bd..50b4509 100644
--- a/lisp/emacs-lisp/ert.el
+++ b/lisp/emacs-lisp/ert.el
@@ -1301,7 +1301,7 @@ empty string."
   "Pretty-print OBJECT, indenting it to the current column of point.
 Ensures a final newline is inserted."
   (let ((begin (point))
-        (pp-escape-newlines nil)
+        (pp-escape-newlines t)
         (print-escape-control-characters t))
     (pp object (current-buffer))
     (unless (bolp) (insert "\n"))



reply via email to

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