mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdChart: Corrected indentation for multi-line output
This commit is contained in:
parent
1127a78abd
commit
198902821c
1 changed files with 6 additions and 1 deletions
|
@ -156,10 +156,15 @@ int renderChart (
|
|||
<< labelDay
|
||||
<< lines[0].str ();
|
||||
|
||||
int indent = (rules.getBoolean ("reports." + type + ".month") ? 4 : 0) +
|
||||
(rules.getBoolean ("reports." + type + ".week") ? 4 : 0) +
|
||||
(rules.getBoolean ("reports." + type + ".day") ? 3 : 0) +
|
||||
(rules.getBoolean ("reports." + type + ".weekday") ? 4 : 0);
|
||||
|
||||
if (lines.size () > 1)
|
||||
for (unsigned int i = 1; i < lines.size (); ++i)
|
||||
std::cout << "\n"
|
||||
<< std::string (labelMonth.length () + labelDay.length (), ' ')
|
||||
<< std::string (indent, ' ')
|
||||
<< lines[i].str ();
|
||||
|
||||
std::cout << " "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue