Task Data Parsing
- Improved the handling when parsing blank lines and empty task in the data, so
that instead of the message:
Taskwarrior no longer supports file format 1, originally used between 27
November 2006 and 31 December 2007.
We now see:
Unrecognized Taskwarrior file format or blank line in data.
- Merged t2.t.cpp into t.t.cpp.
This commit is contained in:
@@ -1676,10 +1676,10 @@ int Task::determineVersion (const std::string& line)
|
||||
// X [tags] [attributes] description\n
|
||||
//
|
||||
// Scan for the first character being either the bracket or X.
|
||||
else if (line.find ("X [") == 0 ||
|
||||
line.find ("uuid") == std::string::npos ||
|
||||
(line[0] == '[' &&
|
||||
line.substr (line.length () - 1, 1) != "]"))
|
||||
else if (line.find ("X [") == 0 ||
|
||||
(line[0] == '[' &&
|
||||
line.substr (line.length () - 1, 1) != "]" &&
|
||||
line.length () > 3))
|
||||
return 1;
|
||||
|
||||
// Version 5?
|
||||
|
||||
@@ -839,7 +839,7 @@
|
||||
#define STRING_TASK_NO_FF1 "Taskwarrior no longer supports file format 1, originally used between 27 November 2006 and 31 December 2007."
|
||||
#define STRING_TASK_NO_FF2 "Taskwarrior no longer supports file format 2, originally used between 1 January 2008 and 12 April 2009."
|
||||
#define STRING_TASK_NO_FF3 "Taskwarrior no longer supports file format 3, originally used between 23 March 2009 and 16 May 2009."
|
||||
#define STRING_TASK_PARSE_UNREC_FF "Unrecognized Taskwarrior file format."
|
||||
#define STRING_TASK_PARSE_UNREC_FF "Unrecognized Taskwarrior file format or blank line in data."
|
||||
#define STRING_TASK_DEPEND_ITSELF "A task cannot be dependent on itself."
|
||||
#define STRING_TASK_DEPEND_MISS_CREA "Could not create a dependency on task {1} - not found."
|
||||
#define STRING_TASK_DEPEND_MISS_DEL "Could not delete a dependency on task {1} - not found."
|
||||
|
||||
@@ -841,7 +841,7 @@
|
||||
#define STRING_TASK_NO_FF1 "Taskwarrior no longer supports file format 1, originally used between 27 November 2006 and 31 December 2007."
|
||||
#define STRING_TASK_NO_FF2 "Taskwarrior no longer supports file format 2, originally used between 1 January 2008 and 12 April 2009."
|
||||
#define STRING_TASK_NO_FF3 "Taskwarrior no longer supports file format 3, originally used between 23 March 2009 and 16 May 2009."
|
||||
#define STRING_TASK_PARSE_UNREC_FF "Unrecognized taskwarrior file format."
|
||||
#define STRING_TASK_PARSE_UNREC_FF "Unrecognized Taskwarrior file format or blank line in data."
|
||||
#define STRING_TASK_DEPEND_ITSELF "A task cannot be dependent on itself."
|
||||
#define STRING_TASK_DEPEND_MISS_CREA "Could not create a dependency on task {1} - not found."
|
||||
#define STRING_TASK_DEPEND_MISS_DEL "Could not delete a dependency on task {1} - not found."
|
||||
|
||||
@@ -841,7 +841,7 @@
|
||||
#define STRING_TASK_NO_FF1 "Taskwarrior no longer supports file format 1, originally used between 27 November 2006 and 31 December 2007."
|
||||
#define STRING_TASK_NO_FF2 "Taskwarrior no longer supports file format 2, originally used between 1 January 2008 and 12 April 2009."
|
||||
#define STRING_TASK_NO_FF3 "Taskwarrior no longer supports file format 3, originally used between 23 March 2009 and 16 May 2009."
|
||||
#define STRING_TASK_PARSE_UNREC_FF "Unrecognized taskwarrior file format."
|
||||
#define STRING_TASK_PARSE_UNREC_FF "Unrecognized Taskwarrior file format or blank line in data."
|
||||
#define STRING_TASK_DEPEND_ITSELF "A task cannot be dependent on itself."
|
||||
#define STRING_TASK_DEPEND_MISS_CREA "Could not create a dependency on task {1} - not found."
|
||||
#define STRING_TASK_DEPEND_MISS_DEL "Could not delete a dependency on task {1} - not found."
|
||||
|
||||
Reference in New Issue
Block a user