emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 5c86118: * lisp/emacs-lisp/ert.el: Print results wi


From: Phillip Lord
Subject: [Emacs-diffs] master 5c86118: * lisp/emacs-lisp/ert.el: Print results without newline escaping
Date: Mon, 26 Oct 2015 20:28:37 +0000

branch: master
commit 5c86118b4ba818ed1fd48258f884f95d98674693
Author: Phillip Lord <address@hidden>
Commit: Phillip Lord <address@hidden>

    * lisp/emacs-lisp/ert.el: Print results without newline escaping
---
 lisp/emacs-lisp/ert.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index 2eba021..21c1f1b 100644
--- a/lisp/emacs-lisp/ert.el
+++ b/lisp/emacs-lisp/ert.el
@@ -64,7 +64,7 @@
 (require 'ewoc)
 (require 'find-func)
 (require 'help)
-
+(require 'pp)
 
 ;;; UI customization options.
 
@@ -1300,7 +1300,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



reply via email to

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