mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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.
This commit is contained in:
parent
942f43d195
commit
1a001caedd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue