fixed configurator section titles not being offset
This commit is contained in:
@@ -7,7 +7,7 @@ local flasher = require("graphics.flasher")
|
||||
|
||||
local core = {}
|
||||
|
||||
core.version = "2.4.1"
|
||||
core.version = "2.4.2"
|
||||
|
||||
core.flasher = flasher
|
||||
core.events = events
|
||||
|
||||
@@ -57,8 +57,11 @@ return function (args)
|
||||
for i = 1, #lines do
|
||||
if i > e.frame.h then break end
|
||||
|
||||
-- trim leading/trailing whitespace
|
||||
lines[i] = util.trim(lines[i])
|
||||
-- trim leading/trailing whitespace, except on the first line
|
||||
-- leading whitespace on the first line is usually intentional
|
||||
if i > 1 then
|
||||
lines[i] = util.trim(lines[i])
|
||||
end
|
||||
|
||||
local len = string.len(lines[i])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user