Conditionalize #\no-break-space for lispworks
authorKevin Rosenberg <kevin@rosenberg.net>
Fri, 29 Jan 2010 15:50:33 +0000 (08:50 -0700)
committerKevin Rosenberg <kevin@rosenberg.net>
Fri, 29 Jan 2010 15:50:33 +0000 (08:50 -0700)
sql/expressions.lisp

index d78e3860ff930bde4ec35c8a859593efa2118404..770bf379a69c1e74ecd9a51e0204d81107e2e6db 100644 (file)
      ;; the next loop simply emits each sub-expression with the appropriate number of
      ;; parens and operators
      (flet ((trim (sub)
-             (string-trim '(#\space #\newline #\return #\tab #\no-break-space)
+             (string-trim '(#\space #\newline #\return #\tab
+                             ;; sbcl, allegrocl, and clisp use #\no-break_space
+                             ;; lispworks uses #\no-break-space
+                             #-lispworks #\no-break_space
+                             #+lispworks #\no-break-space
+                             )
                           (with-output-to-string (*sql-stream*)
                             (output-sql sub database)))))
        (let ((str-subs (loop for sub in sub-expressions