replace line breaks in headers in TOC (LaTeX and HTML writers)

do not replace line breaks if the header has the class "linebreaks"