From 073ff9032dd2637247cf242243e648eb4eb3c4b4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 2 Feb 2016 23:35:30 -0500 Subject: [PATCH] TW-1754: '\' at end of description in 'task edit' merges task with following task - Thanks to Scott Kostyshak. --- ChangeLog | 2 ++ src/commands/CmdEdit.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2a2a19aa9..4aaceb4c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -71,6 +71,8 @@ (thanks to Misty De Meo). - TW-1752 cleanup of diag output (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-1763 Removing the due date of a task with no due date modifies the task (thanks to Scott Kostyshak). diff --git a/src/commands/CmdEdit.cpp b/src/commands/CmdEdit.cpp index 30027e06a..82265887a 100644 --- a/src/commands/CmdEdit.cpp +++ b/src/commands/CmdEdit.cpp @@ -84,7 +84,7 @@ int CmdEdit::execute (std::string&) // Find number of matching tasks. for (auto& task : filtered) { - CmdEdit::editResult result = editFile (task); + auto result = editFile (task); if (result == CmdEdit::editResult::error) break; else if (result == CmdEdit::editResult::changes) @@ -130,7 +130,7 @@ std::string CmdEdit::findMultilineValue ( { std::string value = text.substr (start + startMarker.length (), end - (start + startMarker.length ())); - return Lexer::trim (value, "\t "); + return Lexer::trim (value, "\\\t "); } } return "";