TW-1754: '\' at end of description in 'task edit' merges task with following task

- Thanks to Scott Kostyshak.
This commit is contained in:
Paul Beckingham 2016-02-02 23:35:30 -05:00
parent b61471ca0e
commit 073ff9032d
2 changed files with 4 additions and 2 deletions

View file

@ -71,6 +71,8 @@
(thanks to Misty De Meo). (thanks to Misty De Meo).
- TW-1752 cleanup of diag output - TW-1752 cleanup of diag output
(thanks to David Patrick). (thanks to David Patrick).
- TW-1754 '\' at end of description in 'task edit' merges task with following task
(thanks to Scott Kostyshak).
- TW-1756 The columns.t unit test fails two tests after 2300 local. - TW-1756 The columns.t unit test fails two tests after 2300 local.
- TW-1763 Removing the due date of a task with no due date modifies the task - TW-1763 Removing the due date of a task with no due date modifies the task
(thanks to Scott Kostyshak). (thanks to Scott Kostyshak).

View file

@ -84,7 +84,7 @@ int CmdEdit::execute (std::string&)
// Find number of matching tasks. // Find number of matching tasks.
for (auto& task : filtered) for (auto& task : filtered)
{ {
CmdEdit::editResult result = editFile (task); auto result = editFile (task);
if (result == CmdEdit::editResult::error) if (result == CmdEdit::editResult::error)
break; break;
else if (result == CmdEdit::editResult::changes) else if (result == CmdEdit::editResult::changes)
@ -130,7 +130,7 @@ std::string CmdEdit::findMultilineValue (
{ {
std::string value = text.substr (start + startMarker.length (), std::string value = text.substr (start + startMarker.length (),
end - (start + startMarker.length ())); end - (start + startMarker.length ()));
return Lexer::trim (value, "\t "); return Lexer::trim (value, "\\\t ");
} }
} }
return ""; return "";