1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

use comma as a tag separator instead of space

This commit is contained in:
Oliver Giles 2017-08-12 16:42:14 +03:00
parent 56d2f30976
commit b307e06a87

View File

@ -392,9 +392,9 @@ bool Laminar::loadConfiguration() {
if(!tags.empty()) { if(!tags.empty()) {
std::istringstream iss(tags); std::istringstream iss(tags);
std::set<std::string> tagList; std::set<std::string> tagList;
std::copy(std::istream_iterator<std::string>(iss), std::string tag;
std::istream_iterator<std::string>(), while(std::getline(iss, tag, ','))
std::inserter(tagList, tagList.begin())); tagList.insert(tag);
node.tags = tagList; node.tags = tagList;
} }
@ -424,9 +424,9 @@ bool Laminar::loadConfiguration() {
if(!tags.empty()) { if(!tags.empty()) {
std::istringstream iss(tags); std::istringstream iss(tags);
std::set<std::string> tagList; std::set<std::string> tagList;
std::copy(std::istream_iterator<std::string>(iss), std::string tag;
std::istream_iterator<std::string>(), while(std::getline(iss, tag, ','))
std::inserter(tagList, tagList.begin())); tagList.insert(tag);
jobTags[it->path().stem().string()] = tagList; jobTags[it->path().stem().string()] = tagList;
} }