From 828509987ff11440a2e97794013292d28b616fb6 Mon Sep 17 00:00:00 2001 From: xfangfang <2553041586@qq.com> Date: Sun, 30 Apr 2023 13:39:50 +0800 Subject: [PATCH] Fix nanovg: New line \ line break will not be ignore in the tail --- wiliwili/source/view/video_comment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiliwili/source/view/video_comment.cpp b/wiliwili/source/view/video_comment.cpp index 82f6340f9..c33f5e963 100644 --- a/wiliwili/source/view/video_comment.cpp +++ b/wiliwili/source/view/video_comment.cpp @@ -176,7 +176,7 @@ void VideoComment::setData(bilibili::VideoCommentResult data) { if (start < nextMatch) { // 纯文本 auto item = std::make_shared( - msg.substr(start, nextMatch - start), textColor); + msg.substr(start, nextMatch - start) + "\r", textColor); d.emplace_back(item); } if (matchElement == nullptr) break;