summaryrefslogtreecommitdiffstats
path: root/contrib/libs/jinja2cpp/patches/iterators.patch
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-08-31 20:00:36 +0300
committerrobot-piglet <[email protected]>2025-08-31 20:11:04 +0300
commit19c9ebfca4556e766aa7121e3893cb235022256e (patch)
treebc59bc6869ac28224700228e66849ef48f69626b /contrib/libs/jinja2cpp/patches/iterators.patch
parent2ab5cfb1d5db344f7ac3c66671594f3b0a590ab3 (diff)
Intermediate changes
commit_hash:d8a5d171761d004556c21491e0dbec959e6818a5
Diffstat (limited to 'contrib/libs/jinja2cpp/patches/iterators.patch')
-rw-r--r--contrib/libs/jinja2cpp/patches/iterators.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/libs/jinja2cpp/patches/iterators.patch b/contrib/libs/jinja2cpp/patches/iterators.patch
new file mode 100644
index 00000000000..a92a9cd4a37
--- /dev/null
+++ b/contrib/libs/jinja2cpp/patches/iterators.patch
@@ -0,0 +1,11 @@
+--- a/src/string_converter_filter.cpp (index)
++++ b/src/string_converter_filter.cpp (working tree)
+@@ -379,7 +379,7 @@ InternalValue StringConverter::Filter(const InternalValue& baseVal, RenderContex
+ if (string_length >= width)
+ return str;
+ auto whitespaces = width - string_length;
+- str.insert(0, static_cast<std::string::size_type>(whitespaces + 1) / 2, ' ');
++ str = decltype(str)(static_cast<std::string::size_type>(whitespaces + 1) / 2, ' ') + str;
+ str.append(static_cast<std::string::size_type>(whitespaces / 2), ' ');
+ return TargetString(std::move(str));
+ });