mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug Fix - composeF4 -> parse -> composeF4
- Fixed bug that meant Task::composeF4 added a newline, but Task::parse did not expect a newline. This caused Task::determineVersion to detect a format 1 encoding and throw. Changed TDB::load to not remove any \n characters, and Task::parse to accept lines either with or without.
This commit is contained in:
parent
b742712bb1
commit
62f240aad4
2 changed files with 8 additions and 3 deletions
|
@ -181,7 +181,6 @@ int TDB::loadPending (std::vector <Task>& tasks, Filter& filter)
|
|||
if (length > 1)
|
||||
{
|
||||
// TODO Add hidden attribute indicating source?
|
||||
line[length - 1] = '\0'; // Kill \n
|
||||
Task task (line);
|
||||
task.id = mId++;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue