DOM
- Standardized DOM interface to return success/failure, with the possibility of blank values. This matches the Eval::source callback interface‥ - Added more unit tests.
This commit is contained in:
@@ -58,12 +58,12 @@ int CmdGet::execute (std::string& output)
|
||||
for (word = words.begin (); word != words.end (); ++word)
|
||||
{
|
||||
Task t;
|
||||
std::string result = context.dom.get (*word, t);
|
||||
results.push_back (result);
|
||||
|
||||
if (result != "" &&
|
||||
result != *word)
|
||||
std::string result;
|
||||
if (context.dom.get (*word, t, result))
|
||||
{
|
||||
results.push_back (result);
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
||||
join (output, " ", results);
|
||||
|
||||
Reference in New Issue
Block a user