Skip to content

Commit

Permalink
fixed configurator section titles not being offset
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaylaFischler committed Sep 29, 2024
1 parent cc3b04a commit 499ec7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion graphics/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions graphics/elements/TextBox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 499ec7c

Please sign in to comment.