removed linebreak after wrapped TextElements (#1813)

This commit is contained in:
Matthew Marlow 2020-07-19 03:16:58 -07:00 committed by GitHub
parent 382dfbc2fa
commit caa11dda3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -361,10 +361,9 @@ void TextElement::addToContainer(MessageLayoutContainer &container,
if (isSurrogate)
i++;
}
container.addElement(getTextLayoutElement(
//add the final piece of wrapped text
container.addElementNoLineBreak(getTextLayoutElement(
text.mid(wordStart), width, this->hasTrailingSpace()));
container.breakLine();
}
}
}
@ -670,10 +669,9 @@ void IrcTextElement::addToContainer(MessageLayoutContainer &container,
}
// Add last remaining text & segments
container.addElement(
container.addElementNoLineBreak(
getTextLayoutElement(text.mid(wordStart), segments, width,
this->hasTrailingSpace()));
container.breakLine();
}
}
}