mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
fix of #markout chars position data collecting
This commit is contained in:
parent
8d9c8f00d8
commit
22b3ba93ce
@ -402,14 +402,19 @@ function htmlFormatMsg(msg) {
|
||||
|
||||
if (i !== 0) {
|
||||
l = kindOfL(i - 1);
|
||||
} else {
|
||||
l = 0;
|
||||
}
|
||||
if (j !== msg.str.length) {
|
||||
r = kindOfR(j);
|
||||
} else {
|
||||
r = 0;
|
||||
}
|
||||
if (i === 0 || l === -10) {
|
||||
|
||||
if ((i === 0 && r < 0) || l === -10) {
|
||||
p.push({i: i, k: j - i, t: -1, w: w, a: -1, p: -1});
|
||||
w = false;
|
||||
} else if (j === msg.str.length || r === -10) {
|
||||
} else if ((j === msg.str.length && l < 0) || r === -10) {
|
||||
p.push({i: i, k: j - i, t: 1, w: w, a: -1, p: -1});
|
||||
w = false;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user