summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/ert.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2021-06-25 19:43:04 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2021-06-25 19:55:27 +0200
commit52528d6a162630a57ec0dd182295b4ce2c4c228d (patch)
tree86b0601f42c89e798c3bf7dd2116758b5c27f287 /lisp/emacs-lisp/ert.el
parentdb491e07a2ae235edbf7e126510f428a33686096 (diff)
downloademacs-52528d6a162630a57ec0dd182295b4ce2c4c228d.tar.gz
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`.
Diffstat (limited to 'lisp/emacs-lisp/ert.el')
-rw-r--r--lisp/emacs-lisp/ert.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index 7de07bd6f53..50b45092ca8 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"))