]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/ert.el: Print results without newline escaping
authorPhillip Lord <phillip.lord@russet.org.uk>
Mon, 26 Oct 2015 20:27:16 +0000 (20:27 +0000)
committerPhillip Lord <phillip.lord@russet.org.uk>
Mon, 26 Oct 2015 20:27:16 +0000 (20:27 +0000)
lisp/emacs-lisp/ert.el

index 2eba0216faf778e37ea4ab4bc2f9ae98829237f3..21c1f1be3949f08072d36c9d77e50791c661fb0a 100644 (file)
@@ -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