Commit eb3dd976971bc647cf1df6479d2bfd99cdd6aa5c

Authored by Tomasz Bartosiak
1 parent cffcfa4c

usunięcie spacji z końca jednostek wielowyrazowych bez podrzędników po lemacie

semantics/static/js/semantics_lexical_units.js
... ... @@ -375,7 +375,11 @@ function noSubjUnits(lemmata, dependants) {
375 375 result.push(lemmata[i]);
376 376 } else {
377 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 }
... ...