summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/templates.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp
index 4172521496..d6c0472836 100644
--- a/plugins/NewStory/src/templates.cpp
+++ b/plugins/NewStory/src/templates.cpp
@@ -175,6 +175,15 @@ static void AppendString(CMStringW &buf, const wchar_t *p, ItemData *pItem)
p = p1 + 5;
}
}
+ else if (!wcsncmp(p, L"code]", 5)) {
+ p += 5;
+
+ if (auto *p1 = wcsstr(p, L"[/code]")) {
+ CMStringW wszUrl(p, int(p1 - p));
+ buf.AppendFormat(L"<pre>%s</pre>", wszUrl.c_str());
+ p = p1 + 6;
+ }
+ }
else {
buf.AppendChar('[');
if (*pEnd == '/')