From 0828529f57e16b7a075b3350accb0686929954d2 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 29 Sep 2014 17:23:20 +0300 Subject: Fixes #73: pre first node text missing spaces --- scripts/textanalysis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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; } -- cgit v1.3.1