mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-16 01:57:09 +00:00
Bugfix: Builtin configs didn't support old syntax
This commit is contained in:
parent
5d28bed7db
commit
63e493d3bb
@ -92,7 +92,7 @@ local function convert(s)
|
||||
return handle(setting:match('^%s*(%S*)%s*(.-)%s*$')) .. comment;
|
||||
end;
|
||||
|
||||
local function convertconfig(oldconfig)
|
||||
function convertconfig(oldconfig)
|
||||
local settings, text = oldconfig:match('^(.-)TEXT\n(.*)$');
|
||||
return 'conky.config = {\n' .. settings:gsub('.-\n', convert) .. '};\n\n' .. 'conky.text = \n' .. quote(text) .. ';\n'
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user