removed linebreak after wrapped TextElements (#1813)
This commit is contained in:
@@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user