changed method of adding the last linebreak

previous method caused the paragraph styles to corrupt