mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +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
1
AUTHORS
1
AUTHORS
|
@ -188,3 +188,4 @@ suggestions:
|
||||||
Dmitriy Matrosov
|
Dmitriy Matrosov
|
||||||
Michele Santullo
|
Michele Santullo
|
||||||
Scott Kroll
|
Scott Kroll
|
||||||
|
Kosta H
|
||||||
|
|
|
@ -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).
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue