mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 07:57: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
10
ChangeLog
10
ChangeLog
|
@ -1,6 +1,12 @@
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
|
2.1.1 ()
|
||||||
|
|
||||||
|
Bugs
|
||||||
|
+ Fixed bug that caused miplaced commas in JSON export (thanks to greenskeleton).
|
||||||
|
|
||||||
|
------ old releases ------------------------------
|
||||||
|
|
||||||
2.1.0 (2012-07-23) a413331c9450b48065f94639e7ab0455eaa74293
|
2.1.0 (2012-07-23) a413331c9450b48065f94639e7ab0455eaa74293
|
||||||
|
|
||||||
Features
|
Features
|
||||||
|
@ -116,8 +122,6 @@ Bugs
|
||||||
+ Fixed bug #1032, which prevented negative urgency coefficients from working
|
+ Fixed bug #1032, which prevented negative urgency coefficients from working
|
||||||
for projects and tags.
|
for projects and tags.
|
||||||
|
|
||||||
------ old releases ------------------------------
|
|
||||||
|
|
||||||
2.0.0 (2012-03-17) 03799eba9f230e48c4fa6d6ebddabe91bef7998f
|
2.0.0 (2012-03-17) 03799eba9f230e48c4fa6d6ebddabe91bef7998f
|
||||||
|
|
||||||
# Untracked Features, biggest first.
|
# Untracked Features, biggest first.
|
||||||
|
|
|
@ -66,14 +66,15 @@ int CmdExport::execute (std::string& output)
|
||||||
std::vector <Task>::iterator task;
|
std::vector <Task>::iterator task;
|
||||||
for (task = filtered.begin (); task != filtered.end (); ++task)
|
for (task = filtered.begin (); task != filtered.end (); ++task)
|
||||||
{
|
{
|
||||||
output += task->composeJSON (true);
|
|
||||||
|
|
||||||
if (task != filtered.begin ())
|
if (task != filtered.begin ())
|
||||||
output += ",";
|
output += ",\n";
|
||||||
|
|
||||||
output += "\n";
|
output += task->composeJSON (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (filtered.size ())
|
||||||
|
output += "\n";
|
||||||
|
|
||||||
if (json_array)
|
if (json_array)
|
||||||
output += "]\n";
|
output += "]\n";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue