mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-25 12:10:03 +00:00
convert.lua: if the string countains a backslash, don't quote with ''
This commit is contained in:
parent
f6a4588b3c
commit
25c1b1d919
@ -18,7 +18,7 @@ For more information about the new format, read the wiki page
|
|||||||
]];
|
]];
|
||||||
|
|
||||||
local function quote(s)
|
local function quote(s)
|
||||||
if not s:find("[\n']") then
|
if not s:find("[\n'\\]") then
|
||||||
return "'" .. s .. "'";
|
return "'" .. s .. "'";
|
||||||
end;
|
end;
|
||||||
local q = '';
|
local q = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user