mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug #804 - URL link and break line
- Addressed bug #804 by allowing rc.hyphenate to control whether hyphens are inserted when long lines are broken. This may help prevent xterm from mis-parsing URLs in task annotations, when wrapped (thanks to Yann Davin). - Added unit tests.
This commit is contained in:
parent
08fcb5362e
commit
7dd3e081c7
20 changed files with 147 additions and 28 deletions
|
@ -51,6 +51,8 @@ ColumnDepends::ColumnDepends ()
|
|||
_examples.push_back ("1 2 10");
|
||||
_examples.push_back ("[3]");
|
||||
_examples.push_back (context.config.get ("dependency.indicator"));
|
||||
|
||||
_hyphenate = context.config.getBoolean ("hyphenate");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -150,7 +152,7 @@ void ColumnDepends::render (
|
|||
join (combined, " ", blocking_ids);
|
||||
|
||||
std::vector <std::string> all;
|
||||
wrapText (all, combined, width);
|
||||
wrapText (all, combined, width, _hyphenate);
|
||||
|
||||
std::vector <std::string>::iterator i;
|
||||
for (i = all.begin (); i != all.end (); ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue