1
0
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:
Nikolas Garofil 2010-11-19 15:46:05 +01:00
parent 5d28bed7db
commit 63e493d3bb

View File

@ -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;