From 4379e0c158b7092c7539ae0de9a3b3e45a1d523e Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 30 Sep 2014 16:15:13 +0300 Subject: textanalysis: remove trailing whitespace from link names --- scripts/textanalysis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/textanalysis.js') diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index f8522887..c1b02b38 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -76,7 +76,7 @@ var textAnalyser2 = function (newtext, finalize) { ret.nodes.push({'id':id, 'type':type, 'state':state}); } function addLink(src, dst, name, state) { - ret.links.push({'sourceId':src, 'targetId':dst, 'name':name, 'state':state}); + ret.links.push({'sourceId':src, 'targetId':dst, 'name':name ? name.trim() : "", 'state':state}); } //Sentence Sequencing -- cgit v1.3.1