Merge branch 'master' of https://github.com/Wunderfitz/harbour-fernschreiber
This commit is contained in:
commit
d709473ae4
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ function enhanceMessageText(formattedText) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
messageInsertions.sort( function(a, b) { return b.offset - a.offset } );
|
messageInsertions.sort( function(a, b) { return (b.offset+b.removeLength) - (a.offset+a.removeLength) } );
|
||||||
|
|
||||||
for (var z = 0; z < messageInsertions.length; z++) {
|
for (var z = 0; z < messageInsertions.length; z++) {
|
||||||
messageText = messageText.substring(0, messageInsertions[z].offset) + messageInsertions[z].insertionString + messageText.substring(messageInsertions[z].offset + messageInsertions[z].removeLength);
|
messageText = messageText.substring(0, messageInsertions[z].offset) + messageInsertions[z].insertionString + messageText.substring(messageInsertions[z].offset + messageInsertions[z].removeLength);
|
||||||
|
|
Loading…
Reference in a new issue