Task: Do not export empty attributes in composeJSON

This commit is contained in:
Tomas Babej 2015-02-14 22:16:57 +01:00 committed by Paul Beckingham
parent ab41e005c9
commit 328b7ec260

View file

@ -805,6 +805,10 @@ std::string Task::composeJSON (bool decorate /*= false*/) const
if (i->first.substr (0, 11) == "annotation_") if (i->first.substr (0, 11) == "annotation_")
continue; continue;
// If value is an empty string, do not ever output it
if (i->second == "")
continue;
if (attributes_written) if (attributes_written)
out << ","; out << ",";