Closed benel closed 11 years ago
Open the following TXT file (with 3 spaces at the beginning of each line):
Le soleil résonne sur le mode antique dans le chœur harmonieux des sphères,
et sa course ordonnée s’accomplit avec la rapidité de la foudre.
Highlight sphères, et sa course
.
What is highlighted is really sphères, et sa cou
.
The cause of this bug is that the fragment end position is computed from the text extracted from HTML:
endPos = startPos + strContent.length;
See : lasuli.ui.js#1450 and lasuli.highlighter.js#126.
Reproduction scenario 1
Open the following TXT file (with two spaces between
mode
andantique
):Highlight
mode antique
.What is highlighted is really
mode antiqu
(without the trailinge
).