Fix linebreaks appearing after implicitly inserted paragraphs.