Skip to content

Commit

Permalink
Fix nanovg: New line \ line break will not be ignore in the tail
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Apr 30, 2023
1 parent 2244c98 commit 8285099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiliwili/source/view/video_comment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ void VideoComment::setData(bilibili::VideoCommentResult data) {
if (start < nextMatch) {
// 纯文本
auto item = std::make_shared<RichTextSpan>(
msg.substr(start, nextMatch - start), textColor);
msg.substr(start, nextMatch - start) + "\r", textColor);
d.emplace_back(item);
}
if (matchElement == nullptr) break;
Expand Down

0 comments on commit 8285099

Please sign in to comment.