aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/format/css.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/data/format/css.lux')
-rw-r--r--stdlib/source/library/lux/data/format/css.lux12
1 files changed, 6 insertions, 6 deletions
diff --git a/stdlib/source/library/lux/data/format/css.lux b/stdlib/source/library/lux/data/format/css.lux
index dc42d50d2..4fc18ca76 100644
--- a/stdlib/source/library/lux/data/format/css.lux
+++ b/stdlib/source/library/lux/data/format/css.lux
@@ -62,12 +62,12 @@
{.#None}
(list))]
- (|> (list& ["font-family" (the /font.#family font)]
- ["src" (format "url(" (the /font.#source font) ")")]
- ["font-stretch" (|> font (the /font.#stretch) (maybe.else /value.normal_stretch) /value.value)]
- ["font-style" (|> font (the /font.#style) (maybe.else /value.normal_style) /value.value)]
- ["font-weight" (|> font (the /font.#weight) (maybe.else /value.normal_weight) /value.value)]
- with_unicode)
+ (|> (partial_list ["font-family" (the /font.#family font)]
+ ["src" (format "url(" (the /font.#source font) ")")]
+ ["font-stretch" (|> font (the /font.#stretch) (maybe.else /value.normal_stretch) /value.value)]
+ ["font-style" (|> font (the /font.#style) (maybe.else /value.normal_style) /value.value)]
+ ["font-weight" (|> font (the /font.#weight) (maybe.else /value.normal_weight) /value.value)]
+ with_unicode)
(list#each (function (_ [property value])
(format property ": " value ";")))
text.together