Format
This commit is contained in:
parent
8c539dc879
commit
bc2bc378c7
1 changed files with 10 additions and 9 deletions
|
@ -46,8 +46,9 @@
|
||||||
(defun minify (input-string)
|
(defun minify (input-string)
|
||||||
(with-output-to-string (out)
|
(with-output-to-string (out)
|
||||||
(let ((previous-space-p nil))
|
(let ((previous-space-p nil))
|
||||||
(loop for char across input-string do
|
(loop
|
||||||
(cond
|
:for char :across input-string
|
||||||
|
:do (cond
|
||||||
((whitespace-p char)
|
((whitespace-p char)
|
||||||
(unless previous-space-p
|
(unless previous-space-p
|
||||||
(write-char #\Space out))
|
(write-char #\Space out))
|
||||||
|
|
Loading…
Reference in a new issue