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:
parent
56d2f30976
commit
b307e06a87
@ -392,9 +392,9 @@ bool Laminar::loadConfiguration() {
|
||||
if(!tags.empty()) {
|
||||
std::istringstream iss(tags);
|
||||
std::set<std::string> tagList;
|
||||
std::copy(std::istream_iterator<std::string>(iss),
|
||||
std::istream_iterator<std::string>(),
|
||||
std::inserter(tagList, tagList.begin()));
|
||||
std::string tag;
|
||||
while(std::getline(iss, tag, ','))
|
||||
tagList.insert(tag);
|
||||
node.tags = tagList;
|
||||
}
|
||||
|
||||
@ -424,9 +424,9 @@ bool Laminar::loadConfiguration() {
|
||||
if(!tags.empty()) {
|
||||
std::istringstream iss(tags);
|
||||
std::set<std::string> tagList;
|
||||
std::copy(std::istream_iterator<std::string>(iss),
|
||||
std::istream_iterator<std::string>(),
|
||||
std::inserter(tagList, tagList.begin()));
|
||||
std::string tag;
|
||||
while(std::getline(iss, tag, ','))
|
||||
tagList.insert(tag);
|
||||
jobTags[it->path().stem().string()] = tagList;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user