fixed trailing line breaks after chapter titles