mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix isSpace for docstring
This commit is contained in:
parent
12557b094c
commit
69f838bbf3
@ -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");
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user