Release v0.6.38: avoid unnecessary RichEdit and cancel hidden history previews
This commit is contained in:
@@ -190,6 +190,8 @@ int main(int argc, char **argv)
|
||||
"HTML entities and Unicode survive without script text");
|
||||
require((effects(0, 6) & CFE_BOLD) != 0, "inline CSS bold is rendered");
|
||||
auto plain = ks::textClip(L"{\\literal} Привіт");
|
||||
require(ks::richPreview(plain, false).empty(), "plain history preview does not require RichEdit");
|
||||
require(!ks::richPreview(styled, false).empty(), "formatted history preview retains HTML rendering");
|
||||
ks::setRichText(rich, ks::richPreview(plain));
|
||||
GetWindowTextW(rich, rendered, 256);
|
||||
require(std::wstring(rendered) == plain.text(), "plain Unicode and RTF metacharacters are escaped");
|
||||
|
||||
Reference in New Issue
Block a user