Skip to content

Commit

Permalink
Don't add empty line to text output
Browse files Browse the repository at this point in the history
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 <sw@weilnetz.de>
  • Loading branch information
stweil committed Aug 21, 2017
1 parent de98a68 commit 8bb5a89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ccmain/resultiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,9 @@ void ResultIterator::IterateAndAppendUTF8TextlineText(STRING *text) {
}
*text += line_separator_;
// If we just finished a paragraph, add an extra newline.
if (it_->block() == NULL || IsAtBeginningOf(RIL_PARA))
if (IsAtBeginningOf(RIL_PARA)) {
*text += paragraph_separator_;
}
}

void ResultIterator::AppendUTF8ParagraphText(STRING *text) const {
Expand Down

0 comments on commit 8bb5a89

Please sign in to comment.