forked from openlp/openlp
Handle and other white space too
This commit is contained in:
parent
c36a13d0a8
commit
6f77ee1351
|
@ -140,8 +140,11 @@ sup {
|
|||
if(outline != null)
|
||||
txt = outline;
|
||||
if(window.getComputedStyle(txt).webkitTextStrokeWidth != '0px'){
|
||||
newtext = '<span>' + newtext.replace(/[ ](?![^<]*>)/g,
|
||||
'</span> <span>') + '</span>';
|
||||
newtext = newtext.replace(/(\s| )+(?![^<]*>)/g,
|
||||
function(match) {
|
||||
return '</span>' + match + '<span>';
|
||||
});
|
||||
newtext = '<span>' + newtext + '</span>';
|
||||
}
|
||||
}
|
||||
text_fade('lyricsmain', newtext);
|
||||
|
|
Loading…
Reference in New Issue