mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-09 08:25:00 -04:00
small fix in linestylefilter.js
This commit is contained in:
parent
d6dbb9c9ef
commit
40fe13907e
1 changed files with 12 additions and 6 deletions
|
@ -153,14 +153,20 @@ linestylefilter.getLineStyleFilter = function(lineLength, aline, textAndClassFun
|
||||||
// prevent infinite loop if something funny's going on
|
// prevent infinite loop if something funny's going on
|
||||||
return nextAfterAuthorColors(txt, cls);
|
return nextAfterAuthorColors(txt, cls);
|
||||||
}
|
}
|
||||||
var spanSize = txt.length;
|
var spanSize = txt.length;
|
||||||
if (spanSize > leftInAuthor)
|
if(txt&&txt.indexOf('data-tables')!=-1){
|
||||||
{
|
spanSize = leftInAuthor = txt.length;
|
||||||
spanSize = leftInAuthor;
|
|
||||||
}
|
}
|
||||||
|
else if (spanSize > leftInAuthor){
|
||||||
|
spanSize = leftInAuthor;
|
||||||
|
}
|
||||||
var curTxt = txt.substring(0, spanSize);
|
var curTxt = txt.substring(0, spanSize);
|
||||||
txt = txt.substring(spanSize);
|
txt = txt.substring(spanSize);
|
||||||
nextAfterAuthorColors(curTxt, (cls && cls + " ") + extraClasses);
|
if(curTxt&&curTxt.indexOf('data-tables')!=-1){
|
||||||
|
nextAfterAuthorColors(curTxt,extraClasses );
|
||||||
|
}else{
|
||||||
|
nextAfterAuthorColors(curTxt, (cls && cls + " ") + extraClasses);
|
||||||
|
}
|
||||||
curIndex += spanSize;
|
curIndex += spanSize;
|
||||||
leftInAuthor -= spanSize;
|
leftInAuthor -= spanSize;
|
||||||
if (leftInAuthor == 0)
|
if (leftInAuthor == 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue