diff options
author | George Hazan <george.hazan@gmail.com> | 2024-04-17 13:43:23 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-04-17 13:43:23 +0300 |
commit | 654fd5f8cc5693b7cd7c47c9a485ff0eb98a71bb (patch) | |
tree | 64712da53bd2a575b64bfda94c974815b353a0c0 /plugins | |
parent | 3693cff5d58818b9513e3320dd37d8971899cb80 (diff) |
fixes #4348 (NewStory: табуляция в режиме просмотра съедается, а в режиме редактирования нет)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/templates.cpp | 9 |
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 == '/')
|