bugfix: 自动加空格时有些标签没加上
This commit is contained in:
parent
7202fa6cb4
commit
8ffaf06b72
@ -66,9 +66,9 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
|
||||
if (!word.replace(/\s/, '')) {
|
||||
return '';
|
||||
} else if (/<[^>]*>/.test(word)) {
|
||||
return word;
|
||||
return ' ' + word + ' ';
|
||||
} else {
|
||||
return '<span lang="english">' + word + '</span>';
|
||||
return ' ' + word + ' ';
|
||||
}
|
||||
});
|
||||
node.innerHTML = text;
|
||||
|
Loading…
x
Reference in New Issue
Block a user