Quellcode durchsuchen

Style fixes and missing closing paren

Javier Olaechea vor 10 Jahren
Ursprung
Commit
144cb03294
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 5 5
      src/content.lisp

+ 5 - 5
src/content.lisp

@@ -24,8 +24,8 @@
24 24
 
25 25
 (defun slug-char-p (char &key (allowed-chars (list #\- #\~)))
26 26
   "Determine if CHAR is a valid slug (i.e. URL) character."
27
-  ; use the first char of the general unicode category as kind of
28
-  ; hyper general category
27
+  ;; use the first char of the general unicode category as kind of
28
+  ;; hyper general category
29 29
   (let ((cat (char (cl-unicode:general-category char) 0))
30 30
         (allowed-cats (list #\L #\N))) ; allowed Unicode categories in URLs
31 31
         (cond
@@ -39,11 +39,11 @@
39 39
 
40 40
 (defun slugify (string)
41 41
   "Return a version of STRING suitable for use as a URL."
42
-  (let ((slugified (remove-if-not #'slug-char-p 
42
+  (let ((slugified (remove-if-not #'slug-char-p
43 43
                                   (substitute-if #\- #'unicode-space-p string))))
44 44
 	(if (zerop (length slugified))
45
-            (error "Post title '~a' does not contain characters suitable for a slug!" string 
46
-            slugified)))
45
+        (error "Post title '~a' does not contain characters suitable for a slug!" string )
46
+        slugified)))
47 47
 
48 48
 ;; Content Types
49 49