Commit 4d8684ac462f79ddbffb7cc3dd0459ad49f5cd8a

Thomas de Grivel 2017-03-10T14:08:35

Use STR for print-eval

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/template.lisp b/template.lisp
index 55e5320..d9b9543 100644
--- a/template.lisp
+++ b/template.lisp
@@ -113,7 +113,7 @@
 	 (assert (not *writing*) () "Template parse error: Nested «=")
 	 (let ((*nested* t)
 	       (*writing* t))
-	   `(princ ,(read stream t nil t) *template-output*))))
+	   `(write-string (str ,(read stream t nil t)) *template-output*))))
   (let ((rt (copy-readtable nil)))
     (make-dispatch-macro-character #\« t rt)
     (set-dispatch-macro-character #\« #\Space #'dispatch-template-eval rt)