[cl-typesetting-devel] patch for double comment bug in pprint.lisp

Marc Battyani marc.battyani at fractalconcept.com
Sun Sep 12 20:51:57 UTC 2004


"Peter Seibel" <peter at javamonkey.com> wrote:

> > This patch fixes a bug in pprint.lisp that causes it to duplicate
> > end-of-line comments.
> 
> Ah. Never mind that patch. It fixes the bug but adds a new one. Maybe
> someone who understands what cleaned-line is for can fix it the right
> way. A quick and dirty fix was to change (subseq line start) to
> (subseq line start (position #\; line)) but that's sort of kludgy.

Yes, you will miss the end of the line when there is no comment.
It's probably: 
       (verbatim (subseq code start)))

(Not tested yet ;-)

Marc





More information about the cl-typesetting-devel mailing list