fix uncorrect line breaks inside other elements. closes #1