summaryrefslogtreecommitdiff
path: root/tex/context/base/l-boolean.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2007-08-20 10:21:00 +0200
committerHans Hagen <pragma@wxs.nl>2007-08-20 10:21:00 +0200
commitdeecfe09c774d4c2835f6999b2cdd9ca07e9bdae (patch)
treec921185fc4f848363c7d2ebf48a24e575c8194fe /tex/context/base/l-boolean.lua
parent14fbfde2ad32d2fe4a831aa9007877e5cb5764be (diff)
downloadcontext-deecfe09c774d4c2835f6999b2cdd9ca07e9bdae.tar.gz
stable 2007.08.20 10:21
Diffstat (limited to 'tex/context/base/l-boolean.lua')
-rw-r--r--tex/context/base/l-boolean.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tex/context/base/l-boolean.lua b/tex/context/base/l-boolean.lua
index 128e1d069..e1efa4ad4 100644
--- a/tex/context/base/l-boolean.lua
+++ b/tex/context/base/l-boolean.lua
@@ -16,6 +16,8 @@ function toboolean(str)
return str == "true" or str == "yes" or str == "on" or str == "1"
elseif type(str) == "number" then
return tonumber(str) ~= 0
+ elseif type(str) == "nil" then
+ return false
else
return str
end