replace line breaks in headers in TOC (LaTeX writer)

do not replace line breaks if the header has the class "linebreaks"
replace line breaks in headers in TOC (HTML writer)

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