From 761e244b32ea52372cb363458d68b25e78d3beed Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 19 Apr 2016 22:37:14 +0200 Subject: [PATCH] =?UTF-8?q?Handle=20`awful.util.deprecate('Use=20=E2=80=A6?= =?UTF-8?q?')`=20style=20(#837)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/awful/util.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/awful/util.lua b/lib/awful/util.lua index f1c3feff..b1ad6504 100644 --- a/lib/awful/util.lua +++ b/lib/awful/util.lua @@ -50,7 +50,11 @@ function util.deprecate(see) local funcname = info.name or "?" local msg = "awful: function " .. funcname .. " is deprecated" if see then - msg = msg .. ", see " .. see + if string.sub(see, 1, 3) == 'Use' then + msg = msg .. ". " .. see + else + msg = msg .. ", see " .. see + end end gears_debug.print_warning(msg .. ".\n" .. tb) end