[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 12/18: pretty-print: width arg is never false
From: |
Andy Wingo |
Subject: |
[Guile-commits] 12/18: pretty-print: width arg is never false |
Date: |
Thu, 8 Jun 2023 04:26:42 -0400 (EDT) |
wingo pushed a commit to branch main
in repository guile.
commit 75f96e825c73ca77929077489c29126cf860d530
Author: Andy Wingo <wingo@pobox.com>
AuthorDate: Fri Jun 2 21:46:17 2023 +0200
pretty-print: width arg is never false
* module/ice-9/pretty-print.scm (generic-write): width is never false.
---
module/ice-9/pretty-print.scm | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/module/ice-9/pretty-print.scm b/module/ice-9/pretty-print.scm
index 5ad25ca5f..f0385c204 100644
--- a/module/ice-9/pretty-print.scm
+++ b/module/ice-9/pretty-print.scm
@@ -288,11 +288,8 @@
(pr obj pp-expr))
(put-string port per-line-prefix)
- (if width
- (begin
- (pp obj)
- (newline))
- (wr obj port))
+ (pp obj)
+ (newline)
;; Return `unspecified'
(if #f #f))
- [Guile-commits] 16/18: Load (ice-9 binary-ports) from C in thread-safe way, (continued)
- [Guile-commits] 16/18: Load (ice-9 binary-ports) from C in thread-safe way, Andy Wingo, 2023/06/08
- [Guile-commits] 07/18: Use custom binary output ports for make-chunked-output-port, Andy Wingo, 2023/06/08
- [Guile-commits] 13/18: Inline generic-write into pretty-print, Andy Wingo, 2023/06/08
- [Guile-commits] 10/18: Modernize soft ports, Andy Wingo, 2023/06/08
- [Guile-commits] 01/18: pretty-print: Use string-concatenate-reverse, Andy Wingo, 2023/06/08
- [Guile-commits] 17/18: Deprecate (ice-9 lineio), Andy Wingo, 2023/06/08
- [Guile-commits] 18/18: Fix exn dispatch for exns within pre-unwind handlers, Andy Wingo, 2023/06/08
- [Guile-commits] 09/18: Implement R6RS custom textual ports, Andy Wingo, 2023/06/08
- [Guile-commits] 11/18: Rewrite pretty-print to rely on port-column, abort early, Andy Wingo, 2023/06/08
- [Guile-commits] 14/18: truncated-print: use call-with-truncating-output-string, Andy Wingo, 2023/06/08
- [Guile-commits] 12/18: pretty-print: width arg is never false,
Andy Wingo <=
- [Guile-commits] 15/18: Fix allow-newline? in call-with-truncating-output-string, Andy Wingo, 2023/06/08
- [Guile-commits] 02/18: pretty-print: inline genwrite:newline-str, Andy Wingo, 2023/06/08