mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 19:17:19 +02:00
Bug #1381
- #1381 Invalid JSON exported by Task 2.3.0-beta1 (thanks to Kosta H).
This commit is contained in:
parent
2eac71801a
commit
8ad29bded7
3 changed files with 5 additions and 3 deletions
|
@ -797,13 +797,13 @@ std::string Task::composeJSON (bool decorate /*= false*/) const
|
|||
Task::const_iterator i;
|
||||
for (i = this->begin (); i != this->end (); ++i)
|
||||
{
|
||||
if (attributes_written)
|
||||
out << ",";
|
||||
|
||||
// Annotations are not written out here.
|
||||
if (i->first.substr (0, 11) == "annotation_")
|
||||
continue;
|
||||
|
||||
if (attributes_written)
|
||||
out << ",";
|
||||
|
||||
std::string type = Task::attributes[i->first];
|
||||
if (type == "")
|
||||
type = "string";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue