aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/data/text.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/data/text.lux')
-rw-r--r--stdlib/source/lux/data/text.lux4
1 files changed, 3 insertions, 1 deletions
diff --git a/stdlib/source/lux/data/text.lux b/stdlib/source/lux/data/text.lux
index 99cf151b1..d257c88ee 100644
--- a/stdlib/source/lux/data/text.lux
+++ b/stdlib/source/lux/data/text.lux
@@ -252,13 +252,15 @@
(-> Text Text)
(..enclose' ..double-quote))
+(def: #export space Text " ")
+
(def: #export (space? char)
{#.doc "Checks whether the character is white-space."}
(-> Char Bit)
(`` (case char
(^or (^ (char (~~ (static ..tab))))
(^ (char (~~ (static ..vertical-tab))))
- (^ (char " "))
+ (^ (char (~~ (static ..space))))
(^ (char (~~ (static ..new-line))))
(^ (char (~~ (static ..carriage-return))))
(^ (char (~~ (static ..form-feed)))))