From 28ed6ae74d0185bea22e65acf6b53c650725d9d8 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 27 Jun 2014 19:09:26 -0400 Subject: [PATCH] Task MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Now recognizeѕ '', "" and as examples of an attribute values that should be cleared. --- src/Task.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Task.cpp b/src/Task.cpp index f4c691193..32b104188 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -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);