diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-30 19:43:42 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-30 19:43:42 +0300 |
commit | 032787f69076aafd43843c9ab64bdc373dc9aa6a (patch) | |
tree | e8d761cf9adbf492ab2d249d9fc427be7660ca66 /plugins/NewStory/src | |
parent | 79353069a2cc268c37c3bf8c50e8d74039298231 (diff) |
update of litehtml, fixes the problem with empty lines
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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
|