Non-ASCII characters make std::isspace crash, but not lyx::isSpace.
This commit is contained in:
Thibaut Cuvelier 2020-10-07 04:43:31 +02:00
parent 3d46cc302b
commit 6a0e93f162

View File

@ -3430,7 +3430,7 @@ std::vector<docstring> Paragraph::simpleDocBookOnePar(Buffer const & buf,
}
} else {
char_type c = getUChar(buf.masterBuffer()->params(), runparams, i);
if (std::isspace(c) && !ignore_fonts)
if (lyx::isSpace(c) && !ignore_fonts)
delayedChars.push_back(c);
else
*xs << c;