Skip to content

Commit 8bb5a89

Browse files
committed
Don't add empty line to text output
Empty lines in text output are needed to separate paragraphs, but there should not be an empty line at the end of the text. Signed-off-by: Stefan Weil <[email protected]>
1 parent de98a68 commit 8bb5a89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ccmain/resultiterator.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,9 @@ void ResultIterator::IterateAndAppendUTF8TextlineText(STRING *text) {
658658
}
659659
*text += line_separator_;
660660
// If we just finished a paragraph, add an extra newline.
661-
if (it_->block() == NULL || IsAtBeginningOf(RIL_PARA))
661+
if (IsAtBeginningOf(RIL_PARA)) {
662662
*text += paragraph_separator_;
663+
}
663664
}
664665

665666
void ResultIterator::AppendUTF8ParagraphText(STRING *text) const {

0 commit comments

Comments
 (0)