diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-05-29 18:33:05 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-05-29 18:33:05 +0200 |
commit | 9f00bf80604d49527ec057e4afc0f47612ad025b (patch) | |
tree | 6173bd52388329862fbf525158cc6949d39099eb /lib/utils | |
parent | f4a17b182fb28f686693659983d82797ce93330b (diff) | |
download | gitbook-9f00bf80604d49527ec057e4afc0f47612ad025b.zip gitbook-9f00bf80604d49527ec057e4afc0f47612ad025b.tar.gz gitbook-9f00bf80604d49527ec057e4afc0f47612ad025b.tar.bz2 |
Add toc at the end of pdf
Diffstat (limited to 'lib/utils')
-rw-r--r-- | lib/utils/string.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/string.js b/lib/utils/string.js index 52cbd3d..63c5e91 100644 --- a/lib/utils/string.js +++ b/lib/utils/string.js @@ -12,6 +12,7 @@ function optionsToShellArgs(options) { return _.chain(options) .map(function(value, key) { if (value == null) return null; + if (value == true) return key; return key+"="+escapeShellArg(value); }) .compact() |