fixes for multi-line toc section headers plus ellipsis handling