mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Bug
- Fixed bug that caused miplaced commas in JSON export (thanks to greenskeleton).
This commit is contained in:
parent
98fbd28501
commit
28e66a28aa
2 changed files with 12 additions and 7 deletions
|
@ -66,14 +66,15 @@ int CmdExport::execute (std::string& output)
|
|||
std::vector <Task>::iterator task;
|
||||
for (task = filtered.begin (); task != filtered.end (); ++task)
|
||||
{
|
||||
output += task->composeJSON (true);
|
||||
|
||||
if (task != filtered.begin ())
|
||||
output += ",";
|
||||
output += ",\n";
|
||||
|
||||
output += "\n";
|
||||
output += task->composeJSON (true);
|
||||
}
|
||||
|
||||
if (filtered.size ())
|
||||
output += "\n";
|
||||
|
||||
if (json_array)
|
||||
output += "]\n";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue