mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Task
- Now recognizeѕ '', "" and <blank> as examples of an attribute values that should be cleared.
This commit is contained in:
parent
74b4684d40
commit
28ed6ae74d
1 changed files with 3 additions and 1 deletions
|
@ -1956,7 +1956,9 @@ void Task::modify (modType type, bool text_required /* = false */)
|
|||
// 'value' requires eval.
|
||||
std::string name = (*i)->attribute ("name");
|
||||
std::string value = (*i)->attribute ("raw");
|
||||
if (value == "")
|
||||
if (value == "" ||
|
||||
value == "''" ||
|
||||
value == "\"\"")
|
||||
{
|
||||
// Remove attribute if the value is blank.
|
||||
(*this).remove (name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue