commit 69f838bbf3e5c1cd0eb1a64dfbf8de469dc10d97 Author: Yuriy Skalko <yuriy.ska...@gmail.com> Date: Sat Oct 24 11:03:36 2020 +0300
Fix isSpace for docstring --- src/insets/InsetBibtex.cpp | 2 +- src/xml.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index bee485e..f606444 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -1276,7 +1276,7 @@ void InsetBibtex::docbook(XMLStream & xs, OutputParams const &) const xs << xml::StartTag("keywordset") << xml::CR(); for (auto & kw: keywords) { kw.erase(kw.begin(), std::find_if(kw.begin(), kw.end(), - [](int c) {return !std::isspace(c);})); + [](char_type c) {return !lyx::isSpace(c);})); xs << xml::StartTag("keyword"); xs << kw; xs << xml::EndTag("keyword"); diff --git a/src/xml.cpp b/src/xml.cpp index dda39a4..f96a19c 100644 --- a/src/xml.cpp +++ b/src/xml.cpp @@ -143,7 +143,7 @@ docstring CompTag::writeTag() const // automatically. docstring attributes = escapeString(attr_, XMLStream::ESCAPE_NONE); attributes.erase(attributes.begin(), std::find_if(attributes.begin(), attributes.end(), - [](int c) {return !std::isspace(c);})); + [](char_type c) {return !isSpace(c);})); if (!attributes.empty()) { output += ' ' + attributes; } -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs