summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/templates.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp
index 7c3e091057..7707e742b0 100644
--- a/plugins/NewStory/src/templates.cpp
+++ b/plugins/NewStory/src/templates.cpp
@@ -189,6 +189,20 @@ static void AppendString(CMStringW &buf, const wchar_t *p, ItemData *pItem)
}
else p--;
}
+ else if (!wcsncmp(p, L"color=", 6)) {
+ p += 6;
+
+ if (auto *p1 = wcschr(p, ']')) {
+ CMStringW wszColor(p, int(p1 - p));
+ buf.AppendFormat(L"<font color=#%06X>", color2html(wcstoul(wszColor, 0, 16)));
+ p = p1;
+ }
+ else p--;
+ }
+ else if (!wcsncmp(p, L"color]", 6)) {
+ p += 5;
+ buf.AppendFormat(L"</font>");
+ }
else if (!wcsncmp(p, L"code]", 5)) {
p += 5;