mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Footnotes
- Relocated 'N tasks' style message to footnotes.
This commit is contained in:
parent
1813f67230
commit
43e72b8ac8
3 changed files with 10 additions and 10 deletions
|
@ -190,7 +190,7 @@ int CmdHistoryMonthly::execute (std::string& output)
|
|||
<< "\n";
|
||||
else
|
||||
{
|
||||
out << STRING_FEEDBACK_NO_TASKS << "\n";
|
||||
context.footnote (STRING_FEEDBACK_NO_TASKS);
|
||||
rc = 1;
|
||||
}
|
||||
|
||||
|
@ -347,7 +347,7 @@ int CmdHistoryAnnual::execute (std::string& output)
|
|||
<< "\n";
|
||||
else
|
||||
{
|
||||
out << STRING_FEEDBACK_NO_TASKS << "\n";
|
||||
context.footnote (STRING_FEEDBACK_NO_TASKS);
|
||||
rc = 1;
|
||||
}
|
||||
|
||||
|
@ -546,7 +546,7 @@ int CmdGHistoryMonthly::execute (std::string& output)
|
|||
}
|
||||
else
|
||||
{
|
||||
out << STRING_FEEDBACK_NO_TASKS << "\n";
|
||||
context.footnote (STRING_FEEDBACK_NO_TASKS);
|
||||
rc = 1;
|
||||
}
|
||||
|
||||
|
@ -742,7 +742,7 @@ int CmdGHistoryAnnual::execute (std::string& output)
|
|||
}
|
||||
else
|
||||
{
|
||||
out << STRING_FEEDBACK_NO_TASKS << "\n";
|
||||
context.footnote (STRING_FEEDBACK_NO_TASKS);
|
||||
rc = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -396,7 +396,7 @@ int CmdInfo::execute (std::string& output)
|
|||
|
||||
if (! filtered.size ())
|
||||
{
|
||||
out << STRING_FEEDBACK_NO_MATCH << "\n";
|
||||
context.footnote (STRING_FEEDBACK_NO_MATCH);
|
||||
rc = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -115,20 +115,20 @@ int CmdTags::execute (std::string& output)
|
|||
<< optionalBlankLine ();
|
||||
|
||||
if (unique.size () == 1)
|
||||
out << STRING_CMD_TAGS_SINGLE;
|
||||
context.footnote (STRING_CMD_TAGS_SINGLE);
|
||||
else
|
||||
out << format (STRING_CMD_TAGS_PLURAL, unique.size ());
|
||||
context.footnote (format (STRING_CMD_TAGS_PLURAL, unique.size ()));
|
||||
|
||||
if (quantity == 1)
|
||||
out << " " << STRING_FEEDBACK_TASKS_SINGLE;
|
||||
context.footnote (STRING_FEEDBACK_TASKS_SINGLE);
|
||||
else
|
||||
out << " " << format (STRING_FEEDBACK_TASKS_PLURAL, quantity);
|
||||
context.footnote (format (STRING_FEEDBACK_TASKS_PLURAL, quantity));
|
||||
|
||||
out << "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
out << STRING_CMD_TAGS_NO_TAGS << "\n";
|
||||
context.footnote (STRING_CMD_TAGS_NO_TAGS);
|
||||
rc = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue