Skip to content
Snippets Groups Projects
Commit e4db1ad2 authored by wlott's avatar wlott
Browse files

Fixed FORMAT-JUSTIFICATION to assume the charpos is 0 if we can't tell from

the stream.
parent 3ab7c63b
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/format.lisp,v 1.21 1991/12/16 10:04:05 wlott Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/format.lisp,v 1.22 1992/01/17 19:56:29 wlott Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -2175,7 +2175,9 @@ ...@@ -2175,7 +2175,9 @@
mincol)) mincol))
(padding (- length chars))) (padding (- length chars)))
(when (and newline-prefix (when (and newline-prefix
(> (+ (lisp::charpos stream) length extra-space) line-len)) (> (+ (or (lisp::charpos stream) 0)
length extra-space)
line-len))
(write-string newline-prefix stream)) (write-string newline-prefix stream))
(flet ((do-padding () (flet ((do-padding ()
(let ((pad-len (truncate padding num-gaps))) (let ((pad-len (truncate padding num-gaps)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment