mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdIDs: Replace comma with space as a separator
This commit is contained in:
parent
6f53f40ad5
commit
1dbca67bb4
1 changed files with 3 additions and 3 deletions
|
@ -100,7 +100,7 @@ std::string CmdIDs::compressIds (const std::vector <int>& ids)
|
||||||
if (i + 1 == ids.size ())
|
if (i + 1 == ids.size ())
|
||||||
{
|
{
|
||||||
if (result.str ().length ())
|
if (result.str ().length ())
|
||||||
result << ",";
|
result << " ";
|
||||||
|
|
||||||
if (range_start < range_end)
|
if (range_start < range_end)
|
||||||
result << ids[range_start] << "-" << ids[range_end];
|
result << ids[range_start] << "-" << ids[range_end];
|
||||||
|
@ -116,7 +116,7 @@ std::string CmdIDs::compressIds (const std::vector <int>& ids)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (result.str ().length ())
|
if (result.str ().length ())
|
||||||
result << ",";
|
result << " ";
|
||||||
|
|
||||||
if (range_start < range_end)
|
if (range_start < range_end)
|
||||||
result << ids[range_start] << "-" << ids[range_end];
|
result << ids[range_start] << "-" << ids[range_end];
|
||||||
|
@ -240,7 +240,7 @@ int CmdUUIDs::execute (std::string& output)
|
||||||
uuids.push_back (task.get ("uuid"));
|
uuids.push_back (task.get ("uuid"));
|
||||||
|
|
||||||
std::sort (uuids.begin (), uuids.end ());
|
std::sort (uuids.begin (), uuids.end ());
|
||||||
join (output, ",", uuids);
|
join (output, " ", uuids);
|
||||||
output += "\n";
|
output += "\n";
|
||||||
|
|
||||||
context.headers.clear ();
|
context.headers.clear ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue