- #1381 Invalid JSON exported by Task 2.3.0-beta1 (thanks to Kosta H).
This commit is contained in:
Paul Beckingham 2013-11-01 17:35:35 -04:00
parent 2eac71801a
commit 8ad29bded7
3 changed files with 5 additions and 3 deletions

View file

@ -188,3 +188,4 @@ suggestions:
Dmitriy Matrosov Dmitriy Matrosov
Michele Santullo Michele Santullo
Scott Kroll Scott Kroll
Kosta H

View file

@ -82,6 +82,7 @@ Bugs
+ #1352 Terminal crashes when using taskwarrior's zsh completion (thanks to + #1352 Terminal crashes when using taskwarrior's zsh completion (thanks to
Ivan Freitas, XTaran). Ivan Freitas, XTaran).
+ #1356 Command reference now mentions /from/to/g. + #1356 Command reference now mentions /from/to/g.
+ #1381 Invalid JSON exported by Task 2.3.0-beta1 (thanks to Kosta H).
+ #1387 ZSH Auto-Completion dates are not current (thanks to Benjamin Weber). + #1387 ZSH Auto-Completion dates are not current (thanks to Benjamin Weber).
+ #1388 Updated task(1) man pages with import/export script examples (thanks to + #1388 Updated task(1) man pages with import/export script examples (thanks to
Benjamin Weber). Benjamin Weber).

View file

@ -797,13 +797,13 @@ std::string Task::composeJSON (bool decorate /*= false*/) const
Task::const_iterator i; Task::const_iterator i;
for (i = this->begin (); i != this->end (); ++i) for (i = this->begin (); i != this->end (); ++i)
{ {
if (attributes_written)
out << ",";
// Annotations are not written out here. // Annotations are not written out here.
if (i->first.substr (0, 11) == "annotation_") if (i->first.substr (0, 11) == "annotation_")
continue; continue;
if (attributes_written)
out << ",";
std::string type = Task::attributes[i->first]; std::string type = Task::attributes[i->first];
if (type == "") if (type == "")
type = "string"; type = "string";