Table of contents and variables weird behaviour
When some of my titles have Variables in the TOC (variables that I have created) they appear in the TOC incorrectly. My Variable here is a dash date i.e. 2019-2020. At first I used "–" rather than "-" but both ended up with the same result. I've uploaded all screenshots to demonstrate what I'm talking about: The variable with the longer dash, the variable in the heading and the TOC that relates to it. Notice that some TOC's are affected, but not others, so I'm at a loss.
Retyping the headings solved this issue.
Adobe InDesign team
Ah well - never mind. I just retyped the headings in the text itself and all was right. Must be something I typed in the text that acted as a marker and that was invisible to me. All good now