Where each item is not on a seperate line.
What do you mean?
Edit: I did not notice this… I understand now.
in the TOC settings window tick "Run-in"
"Select this option if you want all TOC entries to be run into a single paragraph. A semicolon followed by a space (; ) separates the entries".
here is a screenshot