Cross reference takes more space than its text
A cross reference sometimes takes up more space than its actual text.
In the attached shows a frame with text with the right side of the text frame visible and the word "with" (above) extending well beyond the 2nd to last line in the frame. The "112" in the picture is a cross reference. When that cross reference is removed and "regular" text is typed in the 112 fits on the line.
Question first posted and confirmed by another here: https://forums.adobe.com/message/10908454#10908454.
This happens in CS6 and in CC2019, 14.0.1 x64.
Shirley Johnson commented
InDesign 16.0.1 x64
In my case, when I use cross references in a table, paragraph number cross references work fine in the space, but page number cross references do not. In the screenshots below, "Pages 2-3" are both cross references using the same cross reference and paragraph styles. The only difference between the 2, is that the 2nd one is in a much wider text box than the one in the table. Notice that the cross reference, "Steps 1-12" is also a cross reference, but it's using paragraph numbers instead of page numbers and it fits no problem, even though there's more text.
The second screenshot shows what happens when I change the problem cross reference to text. It immediately wraps properly (though it didn't remember the text it just had, switching it from 2-3 to 1-1).
I've already tried changing every paragraph composer option available under styles but no change.
What did get the original, Pages 2-3 cross reference to stay on a single line was adjusting the kerning from 10 to -90 which is unacceptable.
Here's details on the font and size I was using, and the table column dimensions.
In my case changing paragraph's justification composer to "Adobe World-Ready Paragraph Composer" solves the problem!