Browse Source

Fix embarrassing escaping in write-file.

Brit Butler 11 years ago
parent
commit
2011da83ad
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/coleslaw.lisp
  2. 1 1
      src/config.lisp

+ 2 - 2
src/coleslaw.lisp

1
 (in-package :coleslaw)
1
 (in-package :coleslaw)
2
 
2
 
3
-(defun main (&optional config-key)
3
+(defun main (&optional (config-key ""))
4
   "Load the user's config file, then compile and deploy the site."
4
   "Load the user's config file, then compile and deploy the site."
5
   (load-config config-key)
5
   (load-config config-key)
6
   (load-content)
6
   (load-content)
93
                    :if-exists :supersede
93
                    :if-exists :supersede
94
                    :if-does-not-exist :create
94
                    :if-does-not-exist :create
95
                    :external-format '(:utf-8))
95
                    :external-format '(:utf-8))
96
-    (write page :stream out)))
96
+    (write page :stream out :escape nil)))

+ 1 - 1
src/config.lisp

48
         custom-path
48
         custom-path
49
         (rel-path (user-homedir-pathname) ".coleslawrc"))))
49
         (rel-path (user-homedir-pathname) ".coleslawrc"))))
50
 
50
 
51
-(defun load-config (&optional (config-key ""))
51
+(defun load-config (&optional config-key)
52
   "Load the coleslaw configuration from DIR/.coleslawrc, using CONFIG-KEY
52
   "Load the coleslaw configuration from DIR/.coleslawrc, using CONFIG-KEY
53
 if necessary. DIR is ~ by default."
53
 if necessary. DIR is ~ by default."
54
   (with-open-file (in (discover-config-path config-key) :external-format '(:utf-8))
54
   (with-open-file (in (discover-config-path config-key) :external-format '(:utf-8))