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