mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Interval: Simplified ::summarize
This commit is contained in:
parent
b6432222d3
commit
35ea8b19f5
1 changed files with 7 additions and 5 deletions
|
@ -145,8 +145,9 @@ std::string Interval::summarize () const
|
|||
<< _start.toISOLocalExtended ()
|
||||
<< " to "
|
||||
<< _end.toISOLocalExtended ()
|
||||
<< ", length "
|
||||
<< dur.format ();
|
||||
<< " ("
|
||||
<< dur.format ()
|
||||
<< ")";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -155,14 +156,15 @@ std::string Interval::summarize () const
|
|||
<< _start.toISOLocalExtended ();
|
||||
|
||||
if (dur.toTime_t () > 10)
|
||||
out << ", length "
|
||||
<< dur.format ();
|
||||
out << " ("
|
||||
<< dur.format ()
|
||||
<< ")";
|
||||
}
|
||||
|
||||
// TODO Colorize tags.
|
||||
if (_tags.size ())
|
||||
{
|
||||
out << ", using tags:";
|
||||
out << ", tagged:";
|
||||
for (auto& tag : _tags)
|
||||
out << ' ' << quoteIfNeeded (tag);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue