From a30a3f1e6a7663a7d33596ced712734b05910635 Mon Sep 17 00:00:00 2001 From: Jakub Jankiewicz Date: Fri, 21 Aug 2020 13:54:21 +0200 Subject: [PATCH] refactor pprint --- src/lips.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lips.js b/src/lips.js index 9e7b0ee3e..aac50a9e4 100644 --- a/src/lips.js +++ b/src/lips.js @@ -4940,9 +4940,9 @@ pprint: doc(function(arg) { if (arg instanceof Pair) { arg = new lips.Formatter(arg.toString(true)).break().format(); - this.get('stdout').write.call(this, arg); - } else { this.get('display').call(this, arg); + } else { + this.get('write').call(this, arg); } this.get('newline').call(this); }, `(pprint expression)