From 1a001caedd3e26e5d2cb0f2f49d4d7d31a0dca64 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Thu, 31 Dec 2020 14:23:51 -0500 Subject: [PATCH] Task: Prevent double json-decoding of attribute values In bd4a7081, json-decoding of attribute values was introduced as a workaround to properly handle blackslashes in description and annotations (see TW-880). However, this behaviour is no longer present with the new parser and introduces its own suite of issues (i.e. see #2140). Closes #2140. --- src/Task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Task.cpp b/src/Task.cpp index 21dfb2051..62f450437 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -269,7 +269,7 @@ time_t Task::get_date (const std::string& name) const //////////////////////////////////////////////////////////////////////////////// void Task::set (const std::string& name, const std::string& value) { - data[name] = json::decode (value); + data[name] = value; if (! name.compare (0, 11, "annotation_", 11)) ++annotation_count;