]> git.lyx.org Git - features.git/commitdiff
Fix isSpace for docstring
authorYuriy Skalko <yuriy.skalko@gmail.com>
Sat, 24 Oct 2020 08:03:36 +0000 (11:03 +0300)
committerYuriy Skalko <yuriy.skalko@gmail.com>
Sat, 24 Oct 2020 15:55:05 +0000 (18:55 +0300)
src/insets/InsetBibtex.cpp
src/xml.cpp

index bee485eeb6f89e6d2d45b802455120c9c9e637b8..f606444ede5483c91539106d2526ce6850b63ccc 100644 (file)
@@ -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");
index dda39a4f3f6088e12da2e5a948071aa782c706b1..f96a19cdb5cd075bfcf64cefdcdf3f9c90bdcae5 100644 (file)
@@ -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;
                }