mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Task: Do not export empty attributes in composeJSON
This commit is contained in:
parent
ab41e005c9
commit
328b7ec260
1 changed files with 4 additions and 0 deletions
|
@ -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 << ",";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue