Skip to content

Commit

Permalink
refactor pprint
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Aug 21, 2020
1 parent a9b98db commit a30a3f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a30a3f1

Please sign in to comment.