summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/templates.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2024-04-02 09:21:20 +0500
committerElzorFox <elzorfox@ya.ru>2024-04-02 09:21:20 +0500
commit4f4dbfed56df6497cd2ab2824e6bf90f161ab1ce (patch)
tree96cb344763c25398b11e0d432e754a632c5dc8ba /plugins/NewStory/src/templates.cpp
parent41d8d958250a1c84927428e8cf654b81cc66f16a (diff)
NewStory: crashfix
Diffstat (limited to 'plugins/NewStory/src/templates.cpp')
-rw-r--r--plugins/NewStory/src/templates.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp
index 8e43a93b1c..fbcde80cb1 100644
--- a/plugins/NewStory/src/templates.cpp
+++ b/plugins/NewStory/src/templates.cpp
@@ -85,6 +85,7 @@ static void AppendString(CMStringW &buf, const wchar_t *p, ItemData *pItem)
else if (*p == '&') buf.Append(L"&amp;");
else if (*p == '>') buf.Append(L"&gt;");
else if (*p == '<') buf.Append(L"&lt;");
+ else if (*p == '%') buf.Append(L"&percnt;");
else if (*p == '[') {
p++;
if (*p == 'c') {