- Now recognizeѕ '', "" and <blank> as examples of an attribute values that
  should be cleared.
This commit is contained in:
Paul Beckingham 2014-06-27 19:09:26 -04:00
parent 74b4684d40
commit 28ed6ae74d

View file

@ -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);