summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-23 18:50:10 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-23 18:50:10 +0100
commit4fec7760a1068958b137e1329246121ffe76ac4d (patch)
tree1830153663fda63a120814826dbc98e947f6a1b6 /lib
parente6cbea9c7092cf99a48f30a6a6b2e08fb019b174 (diff)
downloadgitbook-4fec7760a1068958b137e1329246121ffe76ac4d.zip
gitbook-4fec7760a1068958b137e1329246121ffe76ac4d.tar.gz
gitbook-4fec7760a1068958b137e1329246121ffe76ac4d.tar.bz2
Fix error in book parsing
Diffstat (limited to 'lib')
-rw-r--r--lib/book.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/book.js b/lib/book.js
index b481818..0ff9930 100644
--- a/lib/book.js
+++ b/lib/book.js
@@ -89,7 +89,7 @@ Book.LOG_LEVELS = {
// Initialize and parse the book: config, summary, glossary
Book.prototype.parse = function() {
var that = this;
- var multilingal = false;
+ var multilingual = false;
that.logDebug("start parsing configuration");
@@ -102,7 +102,7 @@ Book.prototype.parse = function() {
.then(function() {
return that.parseLangs()
.then(function() {
- multilingal = that.langs.length > 0;
+ multilingual = that.langs.length > 0;
if (multilingual) that.logInfo("Parsing multilingual book, with", that.langs.length, "lanuages");
// Sub-books that inherit from the current book configuration
@@ -123,19 +123,19 @@ Book.prototype.parse = function() {
})
.then(function() {
- if (multilingal) return;
+ if (multilingual) return;
return that.listAllFiles();
})
.then(function() {
- if (multilingal) return;
+ if (multilingual) return;
return that.parseReadme();
})
.then(function() {
- if (multilingal) return;
+ if (multilingual) return;
return that.parseSummary();
})
.then(function() {
- if (multilingal) return;
+ if (multilingual) return;
return that.parseGlossary();
})