Commit baface05 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

Fix usage display.

parent 2bdbc88d
2003-07-29 Benot Perrot <benoit@lrde.epita.fr>
* src/task/task_register.cc:
Fix usage display.
2003-07-29 Benot Perrot <benoit@lrde.epita.fr>
* dev/mipsy.xml, dev/mips.py:
......
......@@ -198,18 +198,19 @@ namespace task
ostr << "] ";
unsigned len = 80;
const char tab[] = " ";
for (std::map<std::string, Task const*>::const_iterator
it = _tasks.begin(); it != _tasks.end(); ++it)
{
if (len + (*it).first.size () + 3 >= 80)
{
ostr << std::endl << " ";
len = 0;
}
if ((*it).first.size () > 2)
if ((*it).first.size () > 2)
{
if (len + (*it).first.size () + 3 >= 80)
{
ostr << std::endl << tab;
len = sizeof (tab);
}
ostr << "[" << (*it).first << "] ";
len += (*it).first.size () + 3;
}
len += (*it).first.size () + 3;
}
ostr << std::endl;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment