diff options
| author | Alon Levy <alon@pobox.com> | 2014-09-29 17:23:20 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-09-29 17:23:49 +0300 |
| commit | 0828529f57e16b7a075b3350accb0686929954d2 (patch) | |
| tree | 35247e89306ab333931327f1af2842df90f02a4e | |
| parent | 713efe4872ae985338c39570d02990c9cacc22ba (diff) | |
Fixes #73: pre first node text missing spaces
| -rw-r--r-- | scripts/textanalysis.js | 2 |
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; } |
