Commit eb3dd976971bc647cf1df6479d2bfd99cdd6aa5c
1 parent
cffcfa4c
usunięcie spacji z końca jednostek wielowyrazowych bez podrzędników po lemacie
Showing
1 changed file
with
5 additions
and
1 deletions
semantics/static/js/semantics_lexical_units.js
@@ -375,7 +375,11 @@ function noSubjUnits(lemmata, dependants) { | @@ -375,7 +375,11 @@ function noSubjUnits(lemmata, dependants) { | ||
375 | result.push(lemmata[i]); | 375 | result.push(lemmata[i]); |
376 | } else { | 376 | } else { |
377 | for (j = 0; j < dependants.length; j++) { | 377 | for (j = 0; j < dependants.length; j++) { |
378 | - result.push(lemmata[i] + " " + dependants[j].join(" ")); | 378 | + if (dependants[j].length > 0) { |
379 | + result.push(lemmata[i] + " " + dependants[j].join(" ")); | ||
380 | + } else { | ||
381 | + result.push(lemmata[i]); | ||
382 | + } | ||
379 | } | 383 | } |
380 | } | 384 | } |
381 | } | 385 | } |