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QVE7UFMBTQAQA5O47X4NLFIAC
3QNOKBFMKBGXBVJIRHR2444JRRMBTABHE4674NR3DT67RRM2X6GAC
HOWVSTWAVE7OYKR6AUQKF4LU4NHMGWGV4W6HRTXDQHE5P5YUE4VAC
M5Y4H74FUXS4ZEWNIFEBCHH5LUVLZA24S24AMLIIE42JXKSK63ZQC
elseif line.data:match('%] u2518') then
local section_name = line.data:match('] u2518%s*(.*)')
if array.find(Section_stack, function(x) return x.name == section_name end) then
while table.remove(Section_stack).name ~= section_name do
--
end
line.section_end = true
line.section_name = section_name
line.data = nil
end
line.section_stack = table.shallowcopy(Section_stack)
else
-- string
line.section_stack = table.shallowcopy(Section_stack)
end
else
line.section_stack = {}
end
end
end
function table.shallowcopy(x)
return {unpack(x)}
local section_name = line.data:match('u250c%s*(.*)')
table.insert(Section_stack, {name=section_name})
line.section_begin = true
line.section_name = section_name
line.data = nil
elseif line.data:match('%[ u250c') then
line.section_stack = table.shallowcopy(Section_stack) -- as it is at the beginning
-- I'd like to use the unicode character \u{2518} here, but it doesn't work
-- in OpenBSD.
log(stack_frame_index, '] u2518 ' .. name)
end
function log_new(name, stack_frame_index)
if stack_frame_index == nil then
stack_frame_index = 4
end
log_end(name, stack_frame_index)
log_start(name, stack_frame_index)
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)
end
function log_end(name, stack_frame_index)
if stack_frame_index == nil then
stack_frame_index = 3
end