Inside the table of contents of a latex book, I wish to add a few centered horizontal lines, just for typographic clarity (grouping chapters together). If I very naively write something like:
\addcontentsline{toc}{section}{-----------------------------------}
I do get the line in the table of contents, but also an unnecessary page number associated with it; moreover, the line is not centered. How can I insert a centered line into the table of contents without inserting an associated page number?
(I use MiKTeX and WinEdt, but I suppose that this is irrelevant)

\addtocontents{toc}{<stuff>}– touhami Mar 18 '16 at 09:29