Diff

util/interpolation.lua @ 11200:bf8f2da84007

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 05 Nov 2020 22:31:25 +0100
parent 11064:af1e3b7d9ea3
child 11307:f2e276bb4ef8
line wrap: on
line diff
--- a/util/interpolation.lua	Thu Nov 05 22:27:17 2020 +0100
+++ b/util/interpolation.lua	Thu Nov 05 22:31:25 2020 +0100
@@ -64,6 +64,9 @@
 			elseif opt == '&' then
 				if not value then return ""; end
 				return render(s_sub(block, e), values);
+			elseif opt == '~' then
+				if value then return ""; end
+				return render(s_sub(block, e), values);
 			elseif opt == '?' and not value then
 				return render(s_sub(block, e), values);
 			elseif value ~= nil then