- TW-1444 Tag ordering is preserved, but should be sorted in reports.
This commit is contained in:
Paul Beckingham 2014-11-08 16:52:19 -05:00
parent da8e16a38b
commit 8ff32b767f
2 changed files with 9 additions and 1 deletions

View file

@ -174,6 +174,7 @@
- TW-1436 Parser hangs when multiple slashes are used. - TW-1436 Parser hangs when multiple slashes are used.
- TW-1437 taskd.trust has a bad default value. - TW-1437 taskd.trust has a bad default value.
- TW-1441 task import continues happily if filename doesn't exist. - TW-1441 task import continues happily if filename doesn't exist.
- TW-1444 Tag ordering is preserved, but should be sorted in reports.
- Removed deprecated 'echo.command' setting, in favor of the 'header' and - Removed deprecated 'echo.command' setting, in favor of the 'header' and
'affected' verbosity tokens. 'affected' verbosity tokens.
- Removed deprecated 'edit.verbose' setting, in favor of the 'edit' verbosity - Removed deprecated 'edit.verbose' setting, in favor of the 'edit' verbosity

View file

@ -123,7 +123,14 @@ void ColumnTags::render (
if (_style == "default" || if (_style == "default" ||
_style == "list") _style == "list")
{ {
std::replace (tags.begin (), tags.end (), ',', ' '); std::vector <std::string> allTags;
split (allTags, tags, ',');
if (allTags.size () > 1)
{
std::sort (allTags.begin (), allTags.end ());
join (tags, " ", allTags);
}
std::vector <std::string> all; std::vector <std::string> all;
wrapText (all, tags, width, _hyphenate); wrapText (all, tags, width, _hyphenate);