mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Code Cleanup
- Removed use of getFullDescription in CmdInfo.
This commit is contained in:
parent
ee92438ba8
commit
a300dba2df
1 changed files with 13 additions and 1 deletions
|
@ -105,10 +105,22 @@ int CmdInfo::execute (std::string& output)
|
|||
// description
|
||||
Color c;
|
||||
autoColorize (*task, c);
|
||||
std::string description = task->get ("description");
|
||||
int indent = context.config.getInteger ("indent.annotation");
|
||||
|
||||
std::map <std::string, std::string> annotations;
|
||||
task->getAnnotations (annotations);
|
||||
std::map <std::string, std::string>::iterator ann;
|
||||
for (ann = annotations.begin (); ann != annotations.end (); ++ann)
|
||||
description += "\n"
|
||||
+ std::string (indent, ' ')
|
||||
+ Date (ann->first.substr (11)).toString (context.config.get ("dateformat"))
|
||||
+ " "
|
||||
+ ann->second;
|
||||
|
||||
row = view.addRow ();
|
||||
view.set (row, 0, STRING_COLUMN_LABEL_DESC);
|
||||
view.set (row, 1, getFullDescription (*task, "info"), c);
|
||||
view.set (row, 1, description, c);
|
||||
|
||||
// status
|
||||
row = view.addRow ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue