diff options
| author | Alon Levy <alon@pobox.com> | 2014-09-30 16:15:13 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-09-30 16:15:13 +0300 |
| commit | 4379e0c158b7092c7539ae0de9a3b3e45a1d523e (patch) | |
| tree | 0a1aa75a5051a058a94db3571da35393e9754458 /scripts | |
| parent | 7fb21031929b65c2405046de09618fce9d4ba4b3 (diff) | |
textanalysis: remove trailing whitespace from link names
Diffstat (limited to 'scripts')
| -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 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 |
