mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Enhancement - Annotations
- Annotations are now being parsed properly from FF3.
This commit is contained in:
parent
5836430cc1
commit
d898f3f509
3 changed files with 29 additions and 28 deletions
|
@ -247,7 +247,6 @@ void Task::legacyParse (const std::string& line)
|
|||
set (pair[0], pair[1]);
|
||||
}
|
||||
|
||||
/*
|
||||
// Extract and split the annotations, which are of the form:
|
||||
// 1234:"..." 5678:"..."
|
||||
std::string annotations = line.substr (
|
||||
|
@ -282,10 +281,9 @@ void Task::legacyParse (const std::string& line)
|
|||
{
|
||||
std::string name = pair.substr (0, colon);
|
||||
std::string value = pair.substr (colon + 2, pair.length () - colon - 3);
|
||||
mAnnotations[::atoi (name.c_str ())] = value;
|
||||
set ("annotation_" + name, value);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
set ("description", line.substr (closeAnnoBracket + 2, std::string::npos));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue