From 4bff17a0bcdfc0e05d1de10075fa9178af3b9324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 9 Mar 2015 14:22:25 +0100 Subject: [conky] try to fix the string conversion --- .i3/scripts/conky_helpers.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.i3/scripts/conky_helpers.lua b/.i3/scripts/conky_helpers.lua index b796753..1716e96 100644 --- a/.i3/scripts/conky_helpers.lua +++ b/.i3/scripts/conky_helpers.lua @@ -1,6 +1,7 @@ -- escape special chars to be usable in JSON function conky_json(str) - return string.gsub(conky_parse(str), '([\\"])', '\\%1') + str,_ = string.gsub(conky_parse(str), '([\\"])', '\\%1') + return str end -- format strings of 'xxh xxm xxs' as 'hh:mm' -- cgit v1.2.3