mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
- Task supports improved word-wrapping to the terminal width.
This commit is contained in:
parent
4f8f044644
commit
df215f228d
3 changed files with 24 additions and 10 deletions
|
@ -19,6 +19,7 @@ represents a feature release, and the Z represents a patch.
|
||||||
+ Task now supports a default project and priority for new tasks, via
|
+ Task now supports a default project and priority for new tasks, via
|
||||||
the new "default.project" and "default.priority" configuration variables
|
the new "default.project" and "default.priority" configuration variables
|
||||||
(thanks to Vincent Fleuranceau)
|
(thanks to Vincent Fleuranceau)
|
||||||
|
+ Task supports improved word-wrapping to the terminal width
|
||||||
|
|
||||||
------ old releases ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,7 @@
|
||||||
<li>Task now supports a default project and priority for new tasks, via
|
<li>Task now supports a default project and priority for new tasks, via
|
||||||
the new "default.project" and "default.priority" configuration variables
|
the new "default.project" and "default.priority" configuration variables
|
||||||
(thanks to Vincent Fleuranceau).
|
(thanks to Vincent Fleuranceau).
|
||||||
|
<li>Task supports improved word-wrapping to the terminal width.
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -274,6 +274,26 @@ void handleVersion (Config& conf)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Create a table for the disclaimer.
|
||||||
|
Table disclaimer;
|
||||||
|
disclaimer.setTableWidth (width);
|
||||||
|
disclaimer.addColumn (" ");
|
||||||
|
disclaimer.setColumnWidth (0, Table::flexible);
|
||||||
|
disclaimer.setColumnJustification (0, Table::left);
|
||||||
|
disclaimer.addCell (disclaimer.addRow (), 0,
|
||||||
|
"Task comes with ABSOLUTELY NO WARRANTY; for details read the COPYING file "
|
||||||
|
"included. This is free software, and you are welcome to redistribute it "
|
||||||
|
"under certain conditions; again, see the COPYING file for details.");
|
||||||
|
|
||||||
|
// Create a table for the URL.
|
||||||
|
Table link;
|
||||||
|
link.setTableWidth (width);
|
||||||
|
link.addColumn (" ");
|
||||||
|
link.setColumnWidth (0, Table::flexible);
|
||||||
|
link.setColumnJustification (0, Table::left);
|
||||||
|
link.addCell (link.addRow (), 0,
|
||||||
|
"See http://www.beckingham.net/task.html for the latest releases and a full tutorial.");
|
||||||
|
|
||||||
// Create a table for output.
|
// Create a table for output.
|
||||||
Table table;
|
Table table;
|
||||||
table.setTableWidth (width);
|
table.setTableWidth (width);
|
||||||
|
@ -312,18 +332,10 @@ void handleVersion (Config& conf)
|
||||||
<< " "
|
<< " "
|
||||||
<< VERSION
|
<< VERSION
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< std::endl
|
<< disclaimer.render ()
|
||||||
<< "Task comes with ABSOLUTELY NO WARRANTY; for details read the COPYING file"
|
|
||||||
<< std::endl
|
|
||||||
<< "included. This is free software, and you are welcome to redistribute it"
|
|
||||||
<< std::endl
|
|
||||||
<< "under certain conditions; again, see the COPYING file for details."
|
|
||||||
<< std::endl
|
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< table.render ()
|
<< table.render ()
|
||||||
<< std::endl
|
<< link.render ()
|
||||||
<< "See http://www.beckingham.net/task.html for the latest releases and a full tutorial."
|
|
||||||
<< std::endl
|
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
|
||||||
// Verify installation. This is mentioned in the documentation as the way to
|
// Verify installation. This is mentioned in the documentation as the way to
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue