commit 5d63f693df75b51109d8a33964d14ae926a977e6
parent 70077d86ad0fa8a4c9c3e3196abf66c8153d4c4c
Author: Daniel Barlow <dan@telent.net>
Date: Wed, 30 Jul 2025 23:25:42 +0100
bugfix handle to-html without stream arg
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html.fnl b/html.fnl
@@ -2,7 +2,7 @@
(fn to-html [el out-stream]
(if (not out-stream)
- (let [s (to-html el (string-stream))] (s:to-string))
+ (let [s (string-stream)] (to-html el s) (s:to-string))
(if (= (type el) :string)
(out-stream:write el)
(= (type el) :number)