From 032787f69076aafd43843c9ab64bdc373dc9aa6a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 30 Mar 2024 19:43:42 +0300 Subject: update of litehtml, fixes the problem with empty lines --- plugins/NewStory/src/history_array.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/NewStory/src') diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 56f70ee37c..5c4fd60c10 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -477,7 +477,9 @@ void ItemData::setText(const wchar_t *pwszText) pOwner->webPage.clText = g_fontTable[fontid].cl; pOwner->webPage.clBack = g_colorTable[colorid].cl; - m_doc = litehtml::document::createFromString(T2Utf(formatHtml(pwszText)), &pOwner->webPage); + + litehtml::estring body(T2Utf(formatHtml(pwszText)).get(), litehtml::encoding::utf_8); + m_doc = litehtml::document::createFromString(body, &pOwner->webPage); } // Array -- cgit v1.2.3