Fixed empty detection
This commit is contained in:
parent
6604c1554e
commit
7aaf55c1ea
@ -154,15 +154,12 @@ namespace ts {
|
|||||||
|
|
||||||
result.append(this->_identifier);
|
result.append(this->_identifier);
|
||||||
for(auto it = this->bulks.begin(); it != this->bulks.end(); it++) {
|
for(auto it = this->bulks.begin(); it != this->bulks.end(); it++) {
|
||||||
if(it->find(' ') == std::string::npos && !with_empty) continue;
|
if(it->find('=') == std::string::npos && !with_empty) continue;
|
||||||
|
|
||||||
if(it != this->bulks.begin())
|
if(it != this->bulks.begin())
|
||||||
result.append(" |");
|
result.append(" |");
|
||||||
result.append(*it, 0, it->length() - 1);
|
result.append(*it, 0, it->length() - 1);
|
||||||
}
|
}
|
||||||
if(!with_empty && result.ends_with('|'))
|
|
||||||
this->builded = result.substr(0, result.length() - 1);
|
|
||||||
else
|
|
||||||
this->builded = result;
|
this->builded = result;
|
||||||
return this->builded.value();
|
return this->builded.value();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user