mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Bug
- The _query command now generates JSON with the string entities properly encoded.
This commit is contained in:
parent
57c1983e07
commit
eaf184c833
1 changed files with 11 additions and 10 deletions
21
src/Task.cpp
21
src/Task.cpp
|
@ -27,14 +27,15 @@
|
|||
|
||||
#include <sstream>
|
||||
#include <algorithm>
|
||||
#include "Context.h"
|
||||
#include "Nibbler.h"
|
||||
#include "Date.h"
|
||||
#include "Duration.h"
|
||||
#include "Task.h"
|
||||
#include "text.h"
|
||||
#include "util.h"
|
||||
#include "main.h"
|
||||
#include <Context.h>
|
||||
#include <Nibbler.h>
|
||||
#include <Date.h>
|
||||
#include <Duration.h>
|
||||
#include <Task.h>
|
||||
#include <JSON.h>
|
||||
#include <text.h>
|
||||
#include <util.h>
|
||||
#include <main.h>
|
||||
|
||||
extern Context context;
|
||||
|
||||
|
@ -462,7 +463,7 @@ std::string Task::composeJSON () const
|
|||
out << "\""
|
||||
<< i->second.name ()
|
||||
<< "\":\""
|
||||
<< i->second.value ()
|
||||
<< JSON::encode (i->second.value ())
|
||||
<< "\"";
|
||||
|
||||
++attributes_written;
|
||||
|
@ -487,7 +488,7 @@ std::string Task::composeJSON () const
|
|||
out << "{\"entry\":\""
|
||||
<< d.toISO ()
|
||||
<< "\",\"description\":\""
|
||||
<< i->second.value ()
|
||||
<< JSON::encode (i->second.value ())
|
||||
<< "\"}";
|
||||
|
||||
++annotations_written;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue