diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-10-30 17:52:31 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-10-30 17:52:39 +0100 |
commit | 38c750101c479940d94759bd820d00f90a03f14d (patch) | |
tree | b6d27691b6871d39070c858cd7123e4bcc242000 /lib/utils/string.js | |
parent | ba0f379a89dd44fc6d291e03ea69a92773a7ea1a (diff) | |
download | gitbook-38c750101c479940d94759bd820d00f90a03f14d.zip gitbook-38c750101c479940d94759bd820d00f90a03f14d.tar.gz gitbook-38c750101c479940d94759bd820d00f90a03f14d.tar.bz2 |
Fix #487: Use generated toc as base for ebook generation
Diffstat (limited to 'lib/utils/string.js')
-rw-r--r-- | lib/utils/string.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/string.js b/lib/utils/string.js index 417d7af..54c4c66 100644 --- a/lib/utils/string.js +++ b/lib/utils/string.js @@ -11,8 +11,8 @@ function escapeShellArg(arg) { function optionsToShellArgs(options) { return _.chain(options) .map(function(value, key) { - if (value == null || value == false) return null; - if (value == true) return key; + if (value == null || value === false) return null; + if (value === true) return key; return key+"="+escapeShellArg(value); }) .compact() |