aboutsummaryrefslogtreecommitdiffstats
path: root/qp.scm
diff options
context:
space:
mode:
Diffstat (limited to 'qp.scm')
-rwxr-xr-x[-rw-r--r--]qp.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/qp.scm b/qp.scm
index b772d89..5b5a493 100644..100755
--- a/qp.scm
+++ b/qp.scm
@@ -103,7 +103,9 @@
(display #\")
((lambda (ans) (display #\") ans)
(+ 2 (qp-string obj (- room 2)))))
- ((symbol? obj) (qp-string (symbol->string obj) room))
+ ((symbol? obj)
+ (display obj)
+ (string-length (symbol->string obj)))
((input-port? obj) (display "#[input]") 8)
((output-port? obj) (display "#[output]") 9)
((procedure? obj) (display "#[proc]") 7)
@@ -132,8 +134,7 @@
(lambda objs
(cond
((not *qp-width*)
- (for-each (lambda (x) (write x) (display #\space)) objs)
- (newline))
+ (for-each (lambda (x) (write x) (display #\space)) objs))
((= 0 *qp-width*)
(for-each (lambda (x)
(if (procedure? x) (display "#[proc]") (write x))