Control character end at 0x1F

This commit is contained in:
Maxime Coste 2020-02-26 07:59:05 +11:00
parent f6b6b94ba6
commit af6885c0c9

View File

@ -325,7 +325,7 @@ String fix_atom_text(StringView str)
for (auto it = str.begin(), end = str.end(); it != end; ++it)
{
char c = *it;
if (c <= 0x21 and c != ' ')
if (c <= 0x1F)
{
res += StringView{pos, it};
res += String{Codepoint{(uint32_t)(0x2400 + c)}};