reindent

akkartik
Feb 18, 2025, 4:48 AM
VS5HRXU6364AZ6JT26Z56XO4PQTSEPXV2LQV7SUCCZVVPWXOFRCAC

Dependencies

  • [2] T45HTERY change section delimiters in log for OpenBSD
  • [3] KKMFQDR4 editing source code from within the app

Change contents

  • replacement in log.lua at line 2
    [3.203302][3.203302:203532]()
    local info = debug.getinfo(stack_frame_index, 'Sl')
    local msg
    if type(obj) == 'string' then
    msg = obj
    else
    msg = json.encode(obj)
    end
    love.filesystem.append('log', info.short_src..':'..info.currentline..': '..msg..'\n')
    [3.203302]
    [3.203532]
    local info = debug.getinfo(stack_frame_index, 'Sl')
    local msg
    if type(obj) == 'string' then
    msg = obj
    else
    msg = json.encode(obj)
    end
    love.filesystem.append('log', info.short_src..':'..info.currentline..': '..msg..'\n')
  • replacement in log.lua at line 14
    [3.203649][3.203649:203712](),[3.203712][2.241:378]()
    if stack_frame_index == nil then
    stack_frame_index = 3
    end
    -- I'd like to use the unicode character \u{250c} here, but it doesn't work
    -- in OpenBSD.
    log(stack_frame_index, '[ u250c ' .. name)
    [3.203649]
    [3.203757]
    if stack_frame_index == nil then
    stack_frame_index = 3
    end
    -- I'd like to use the unicode character \u{250c} here, but it doesn't work
    -- in OpenBSD.
    log(stack_frame_index, '[ u250c ' .. name)
  • replacement in log.lua at line 22
    [3.203803][3.203803:203866](),[3.203866][2.379:516]()
    if stack_frame_index == nil then
    stack_frame_index = 3
    end
    -- I'd like to use the unicode character \u{2518} here, but it doesn't work
    -- in OpenBSD.
    log(stack_frame_index, '] u2518 ' .. name)
    [3.203803]
    [3.203911]
    if stack_frame_index == nil then
    stack_frame_index = 3
    end
    -- I'd like to use the unicode character \u{2518} here, but it doesn't work
    -- in OpenBSD.
    log(stack_frame_index, '] u2518 ' .. name)
  • replacement in log.lua at line 31
    [3.203958][3.203958:204091]()
    if stack_frame_index == nil then
    stack_frame_index = 4
    end
    log_end(name, stack_frame_index)
    log_start(name, stack_frame_index)
    [3.203958]
    [3.204091]
    if stack_frame_index == nil then
    stack_frame_index = 4
    end
    log_end(name, stack_frame_index)
    log_start(name, stack_frame_index)