summaryrefslogtreecommitdiff
path: root/tex/context/base/l-boolean.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-07-31 21:40:54 +0300
committerMarius <mariausol@gmail.com>2013-07-31 21:40:54 +0300
commit9bdf7ef9d9811adeab13e76766e170ca932fd7f2 (patch)
treef9dd7598f9581657dababa4085c445439e185b1f /tex/context/base/l-boolean.lua
parentb2ccd1eaf3c63a03928c81e5c0ffa6037c8ccd00 (diff)
downloadcontext-9bdf7ef9d9811adeab13e76766e170ca932fd7f2.tar.gz
beta 2013.07.31 20:23
Diffstat (limited to 'tex/context/base/l-boolean.lua')
-rw-r--r--tex/context/base/l-boolean.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/l-boolean.lua b/tex/context/base/l-boolean.lua
index f087f1a4c..8d11080e7 100644
--- a/tex/context/base/l-boolean.lua
+++ b/tex/context/base/l-boolean.lua
@@ -59,9 +59,9 @@ end
function string.is_boolean(str,default)
if type(str) == "string" then
- if str == "true" or str == "yes" or str == "on" or str == "t" then
+ if str == "true" or str == "yes" or str == "on" or str == "t" or str == "1" then
return true
- elseif str == "false" or str == "no" or str == "off" or str == "f" then
+ elseif str == "false" or str == "no" or str == "off" or str == "f" or str == "0" then
return false
end
end