Fix bug in character reading
authorDavid Vázquez <davazp@gmail.com>
Thu, 2 May 2013 14:59:51 +0000 (15:59 +0100)
committerDavid Vázquez <davazp@gmail.com>
Thu, 2 May 2013 14:59:51 +0000 (15:59 +0100)
src/read.lisp

index ac9e0f3..7478b37 100644 (file)
             (concat (string (%read-char stream))
                     (read-until stream #'terminalp))))
        (cond
-         ((string= cname "space") (char-code #\space))
-         ((string= cname "tab") (char-code #\tab))
-         ((string= cname "newline") (char-code #\newline))
+         ((string= cname "space") #\space)
+         ((string= cname "tab") #\tab)
+         ((string= cname "newline") #\newline)
          (t (char cname 0)))))
     (#\+
      (let ((feature (read-until stream #'terminalp)))
     (dotimes (i (length s))
       (let ((ch (char s i)))
         (if last-escape
-            (progn
+           (progn
               (setf last-escape nil)
               (setf result (concat result (string ch))))
             (if (char= ch #\\)