mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Verbosity: Fix "project" info not showing
- Make "project" verbosity imply "footnote", since verbose project info is shown using footnotes. Fixes failing test in verbose.t. - Convert "verbosity" variable to std::set for increased readability.
This commit is contained in:
parent
124f1fe4c8
commit
ae692e07a6
6 changed files with 63 additions and 21 deletions
19
src/text.cpp
19
src/text.cpp
|
@ -60,6 +60,25 @@ void wrapText (
|
|||
lines.push_back (line);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void split (
|
||||
std::set<std::string>& results,
|
||||
const std::string& input,
|
||||
const char delimiter)
|
||||
{
|
||||
results.clear ();
|
||||
std::string::size_type start = 0;
|
||||
std::string::size_type i;
|
||||
while ((i = input.find (delimiter, start)) != std::string::npos)
|
||||
{
|
||||
results.insert (input.substr (start, i - start));
|
||||
start = i + 1;
|
||||
}
|
||||
|
||||
if (input.length ())
|
||||
results.insert (input.substr (start));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void split (
|
||||
std::vector<std::string>& results,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue