[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] fix/ert-multiline-explanation a23aa4c: Make ERT results pr
From: |
Phillip Lord |
Subject: |
[Emacs-diffs] fix/ert-multiline-explanation a23aa4c: Make ERT results print without newline escaping. |
Date: |
Wed, 21 Oct 2015 20:38:08 +0000 |
branch: fix/ert-multiline-explanation
commit a23aa4c9c99147bd6f36941fbae3a2d94c481bed
Author: Phillip Lord <address@hidden>
Commit: Phillip Lord <address@hidden>
Make ERT results print without newline escaping.
---
lisp/emacs-lisp/ert.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index 2eba021..7d0d254 100644
--- a/lisp/emacs-lisp/ert.el
+++ b/lisp/emacs-lisp/ert.el
@@ -64,6 +64,7 @@
(require 'ewoc)
(require 'find-func)
(require 'help)
+(require 'pp)
;;; UI customization options.
@@ -1300,7 +1301,8 @@ EXPECTEDP specifies whether the result was expected."
(defun ert--pp-with-indentation-and-newline (object)
"Pretty-print OBJECT, indenting it to the current column of point.
Ensures a final newline is inserted."
- (let ((begin (point)))
+ (let ((begin (point))
+ (pp-escape-newlines nil))
(pp object (current-buffer))
(unless (bolp) (insert "\n"))
(save-excursion