From d0c5ccfc55ec85f56014f3d213325be4c32da00b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Apr 2024 18:41:41 +0300 Subject: =?UTF-8?q?fixes=20#4375=20(NewStory:=20=D0=BA=D1=80=D0=B0=D0=BA?= =?UTF-8?q?=D0=BE=D0=B7=D1=8F=D0=B1=D1=80=D1=8B=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D0=BD=D0=B5=D1=81=D0=BE=D0=BE=D1=82=D0=B2=D0=B5=D1=82=D1=81?= =?UTF-8?q?=D1=82=D0=B2=D0=B8=D0=B8=20=D1=82=D0=B5=D0=B3=D0=BE=D0=B2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/templates.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins') diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index d6c0472836..a9535991d1 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -142,6 +142,7 @@ static void AppendString(CMStringW &buf, const wchar_t *p, ItemData *pItem) p = p2 + 5; } } + else p--; } else if (!wcsncmp(p, L"img]", 4)) { p += 4; @@ -151,6 +152,7 @@ static void AppendString(CMStringW &buf, const wchar_t *p, ItemData *pItem) AppendImage(buf, wszUrl, L"", pItem); p = p1 + 5; } + else p--; } else if (!wcsncmp(p, L"url=", 4)) { p += 4; @@ -165,6 +167,7 @@ static void AppendString(CMStringW &buf, const wchar_t *p, ItemData *pItem) p = p2 + 5; } } + else p--; } else if (!wcsncmp(p, L"url]", 4)) { p += 4; @@ -174,6 +177,7 @@ static void AppendString(CMStringW &buf, const wchar_t *p, ItemData *pItem) buf.AppendFormat(L"%s", wszUrl.c_str(), wszUrl.c_str()); p = p1 + 5; } + else p--; } else if (!wcsncmp(p, L"code]", 5)) { p += 5; -- cgit v1.2.3