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

Peter Seibel peter at javamonkey.com
Sun Sep 12 20:06:17 UTC 2004


This patch fixes a bug in pprint.lisp that causes it to duplicate
end-of-line comments.

-Peter

Index: pprint.lisp
===================================================================
--- pprint.lisp	(revision 59)
+++ pprint.lisp	(working copy)
@@ -76,7 +76,7 @@
             (setf start end-tok))
       (with-text-compilation 
         (when (< start length)
-          (verbatim (subseq line start)))
+          (verbatim (subseq cleaned-line start)))
         (with-style (:font (first *pp-comment-decoration*)
                            :font-size *pp-font-size*
                            :color (second *pp-comment-decoration*))

-- 
Peter Seibel                                      peter at javamonkey.com

         Lisp is the red pill. -- John Fraser, comp.lang.lisp




More information about the cl-typesetting-devel mailing list