mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
View
- Implemented description.desc
This commit is contained in:
parent
d0cbf43478
commit
f37a250894
2 changed files with 15 additions and 4 deletions
|
@ -65,9 +65,20 @@ void ColumnDescription::measure (Task& task, int& minimum, int& maximum)
|
|||
{
|
||||
}
|
||||
|
||||
// The text
|
||||
// Just the text
|
||||
else if (_style == "desc")
|
||||
{
|
||||
maximum = description.length ();
|
||||
minimum = 0;
|
||||
|
||||
Nibbler nibbler (description);
|
||||
std::string word;
|
||||
while (nibbler.getUntilWS (word))
|
||||
{
|
||||
nibbler.skipWS ();
|
||||
if (word.length () > minimum)
|
||||
minimum = word.length ();
|
||||
}
|
||||
}
|
||||
|
||||
// The text <date> <anno> ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue