fix typo that lead to missing words in labels
This commit is contained in:
parent
075f3f7f08
commit
7eac7be762
1 changed files with 1 additions and 1 deletions
|
@ -826,7 +826,7 @@ c3nav = {
|
||||||
var text = location.label_override || location.title, new_text = [''], len=0;
|
var text = location.label_override || location.title, new_text = [''], len=0;
|
||||||
for (segment of text.split(' ')) {
|
for (segment of text.split(' ')) {
|
||||||
if (len === 0 || len+segment.length < 12) {
|
if (len === 0 || len+segment.length < 12) {
|
||||||
new_text[new_text.length-1] = (len?' ':'')+$('<div>').text(segment).html();
|
new_text[new_text.length-1] += (len?' ':'')+$('<div>').text(segment).html();
|
||||||
len += segment.length;
|
len += segment.length;
|
||||||
} else {
|
} else {
|
||||||
new_text.push(segment);
|
new_text.push(segment);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue