]> git.lyx.org Git - lyx.git/commitdiff
Amend 249d899
authorThibaut Cuvelier <tcuvelier@lyx.org>
Wed, 7 Oct 2020 02:43:31 +0000 (04:43 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Wed, 7 Oct 2020 02:49:20 +0000 (04:49 +0200)
Non-ASCII characters make std::isspace crash, but not lyx::isSpace.

src/Paragraph.cpp

index 32547ed5e3eeaa5457ac023dd1c188d7afcb1802..520a9f838aad50f324231ea23ba0dc779ac06739 100644 (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;