mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdChart: Indent now dynamic
This commit is contained in:
parent
571f899795
commit
27b387b523
1 changed files with 1 additions and 4 deletions
|
@ -168,18 +168,15 @@ int renderChart (
|
||||||
<< lines[0].str ();
|
<< lines[0].str ();
|
||||||
|
|
||||||
if (lines.size () > 1)
|
if (lines.size () > 1)
|
||||||
{
|
|
||||||
for (unsigned int i = 1; i < lines.size (); ++i)
|
for (unsigned int i = 1; i < lines.size (); ++i)
|
||||||
std::cout << "\n"
|
std::cout << "\n"
|
||||||
<< " "
|
<< std::string (labelMonth.length () + labelDay.length (), ' ')
|
||||||
<< lines[i].str ();
|
<< lines[i].str ();
|
||||||
}
|
|
||||||
|
|
||||||
std::cout << " "
|
std::cout << " "
|
||||||
<< renderTotal (type, rules, work)
|
<< renderTotal (type, rules, work)
|
||||||
<< '\n';
|
<< '\n';
|
||||||
|
|
||||||
std::cout << '\n';
|
|
||||||
previous = day;
|
previous = day;
|
||||||
total_work += work;
|
total_work += work;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue