diff options
author | Hans Hagen <pragma@wxs.nl> | 2013-07-31 20:23:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2013-07-31 20:23:00 +0200 |
commit | bcad533e9ab26e0b6cf2fe84af11ba012d8dd76c (patch) | |
tree | 0027557efa7c8c069b37ff573fd259c73314ee0e /tex/context/base/l-boolean.lua | |
parent | 0804923254f208f75c4da536fec9f51d85a4dbb4 (diff) | |
download | context-bcad533e9ab26e0b6cf2fe84af11ba012d8dd76c.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.lua | 4 |
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 |