# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1611606405 -3600
# Node ID f2e276bb4ef8a98ac574cfdcec7f8ebd1358fb83
# Parent  cd8516a772551f88a3390b567aaba8ab213dfb0e# Parent  5798ab73561936c7803c1f80911474620bfc28ba
Merge 0.11->trunk

diff -r cd8516a77255 -r f2e276bb4ef8 util/interpolation.lua
--- a/util/interpolation.lua	Sun Jan 24 16:12:53 2021 +0100
+++ b/util/interpolation.lua	Mon Jan 25 21:26:45 2021 +0100
@@ -43,11 +43,11 @@
 				end
 			end
 			if funcs then
-				while value ~= nil and opt == '|' do
+				while opt == '|' do
 					local f;
 					f, raw, opt, e = s_match(block, "^([%a_][%w_.]*)(!?)(%p?)()", e);
 					f = funcs[f];
-					if f then value = f(value); end
+					if value ~= nil and f then value = f(value); end
 				end
 			end
 			if opt == '#' or opt == '%' then