mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdReportDay: Added day/mday at the beginning of every line.
This commit is contained in:
parent
e05954f404
commit
07a04bade6
1 changed files with 4 additions and 5 deletions
|
@ -86,9 +86,8 @@ int CmdReportDay (
|
|||
|
||||
// Render the axis.
|
||||
std::cout << '\n';
|
||||
std::string indent = " ";
|
||||
if (rules.get ("report.day.style") != "compact")
|
||||
renderAxis (rules, palette, indent, first_hour, last_hour);
|
||||
renderAxis (rules, palette, " ", first_hour, last_hour);
|
||||
|
||||
// Each day is rendered separately.
|
||||
for (Datetime day = filter.range.start; day < filter.range.end; day++)
|
||||
|
@ -101,13 +100,13 @@ int CmdReportDay (
|
|||
for (auto& track : tracked)
|
||||
renderInterval (rules, line1, line2, day, track, palette, tag_colors);
|
||||
|
||||
std::cout << indent << line1.str () << '\n'
|
||||
<< indent << line2.str () << '\n'
|
||||
std::cout << day.dayNameShort (day.dayOfWeek ()) << ' ' << line1.str () << '\n'
|
||||
<< rightJustify (day.day (), 3) << ' ' << line2.str () << '\n'
|
||||
<< '\n';
|
||||
}
|
||||
|
||||
if (rules.getBoolean ("report.day.summary"))
|
||||
renderSummary (indent, exclusions, tracked);
|
||||
renderSummary (" ", exclusions, tracked);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue