Crazy bug with index entry
Hi,
can anyone confirm that? If you select the word »sit« (attached document) and create an index entry using script, the page reference will be created after the word.

var _doc = app.activeDocument;
var _docIndex;
if(_doc.indexes.length === 0) {
_docIndex = _doc.indexes.add();
} else {
_docIndex = _doc.indexes.firstItem();
}
var _textObj = app.selection[0];
var _parentTopic = _docIndex.topics.add("Topicname");
var _pageRef = _parentTopic.pageReferences.add(_textObj);

- word before that, everything's correct


- tables with 3 or more rows
- the more table rows the more offset

MacOS and InDesign CC2019 14.0.1
Roland
