diff options
-rw-r--r-- | plugins/NewStory/src/templates.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index 42fadcd7cf..1097fd6226 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -236,6 +236,14 @@ CMStringW ItemData::formatHtml(const wchar_t *pwszStr) CMStringW wszOrigText((pwszStr) ? pwszStr : formatString());
+ if (dbe.flags & DBEF_JSON) {
+ wszOrigText.Append(L"\r\n");
+
+ auto &json = dbe.getJson();
+ for (auto &it : json["r"])
+ wszOrigText.AppendFormat(L"%s: %d ", Utf2T(it.name()).get(), it.as_int());
+ }
+
SMADD_BATCHPARSE sp = {};
SMADD_BATCHPARSERES *spRes = nullptr;
if (g_plugin.bHasSmileys) {
|