summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-09-29 17:23:20 +0300
committerAlon Levy <alon@pobox.com>2014-09-29 17:23:49 +0300
commit0828529f57e16b7a075b3350accb0686929954d2 (patch)
tree35247e89306ab333931327f1af2842df90f02a4e /scripts
parent713efe4872ae985338c39570d02990c9cacc22ba (diff)
Fixes #73: pre first node text missing spaces
Diffstat (limited to 'scripts')
-rw-r--r--scripts/textanalysis.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js
index ecebdbeb..6d6faff4 100644
--- a/scripts/textanalysis.js
+++ b/scripts/textanalysis.js
@@ -138,7 +138,7 @@ var textAnalyser2 = function (newtext, finalize) {
}
}
if (newnodes.length === 0) {
- prefix += sentence[m];
+ prefix += (prefix.length > 0 ? ' ' : '') + sentence[m];
}
break;
}