mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
CmdBurndown
- Converted from A3 to A3t.
This commit is contained in:
parent
1f8763829d
commit
d70df55c2d
1 changed files with 8 additions and 10 deletions
|
@ -206,21 +206,19 @@ Chart::Chart (char type)
|
||||||
|
|
||||||
// Set the title.
|
// Set the title.
|
||||||
_title = "(";
|
_title = "(";
|
||||||
std::vector <Arg>::const_iterator arg;
|
std::vector <Tree*>::iterator i;
|
||||||
for (arg = context.a3.begin (); arg != context.a3.end (); ++arg)
|
for (i = context.a3t.tree ()->_branches.begin (); i != context.a3t.tree ()->_branches.end (); ++i)
|
||||||
{
|
{
|
||||||
if (arg->_category == Arg::cat_program ||
|
if (! (*i)->hasTag ("BINARY") &&
|
||||||
arg->_category == Arg::cat_rc ||
|
! (*i)->hasTag ("RC") &&
|
||||||
arg->_category == Arg::cat_override ||
|
! (*i)->hasTag ("CONFIG") &&
|
||||||
arg->_category == Arg::cat_command ||
|
! (*i)->hasTag ("CMD") &&
|
||||||
arg->_category == Arg::cat_terminator)
|
! (*i)->hasTag ("TERMINATOR"))
|
||||||
;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (_title.length () > 1)
|
if (_title.length () > 1)
|
||||||
_title += " ";
|
_title += " ";
|
||||||
|
|
||||||
_title += arg->_raw;
|
_title += (*i)->attribute ("raw");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_title += ")";
|
_title += ")";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue