- Fixed bug where the identifier "on-modify" contained some bogus UTF8.
- Ensured that every input line has a \n.
This commit is contained in:
Paul Beckingham 2014-10-19 00:57:30 -04:00
parent 719e9d242b
commit 7e2582f2b8

View file

@ -297,7 +297,7 @@ void Hooks::onModify (const Task& before, std::vector <Task>& tasks)
context.timer_hooks.start ();
std::vector <std::string> matchingScripts = scripts ("on-modіfy");
std::vector <std::string> matchingScripts = scripts ("on-modify");
if (matchingScripts.size ())
{
// Prepare invariants.
@ -463,7 +463,9 @@ int Hooks::callHookScript (
}
std::string inputStr;
join (inputStr, "\n", input);
std::vector <std::string>::const_iterator i;
for (i = input.begin (); i != input.end (); ++i)
inputStr += *i + "\n";
std::string outputStr;
std::vector <std::string> args;