diff options
author | George Hazan <george.hazan@gmail.com> | 2024-04-22 18:41:41 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-04-22 18:41:41 +0300 |
commit | d0c5ccfc55ec85f56014f3d213325be4c32da00b (patch) | |
tree | 79b46a77541daa7508f73a411c8b8450d86a6488 /plugins | |
parent | 47acc264a0fef0ae59d23ef78b8345d97950ec5e (diff) |
fixes #4375 (NewStory: кракозябры при несоответствии тегов)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/templates.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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"<a class=\"link\" href=\"%s\">%s</a>", wszUrl.c_str(), wszUrl.c_str());
p = p1 + 5;
}
+ else p--;
}
else if (!wcsncmp(p, L"code]", 5)) {
p += 5;
|