Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/resources/filters/customnodes/floatreftarget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ local function split_longtable_start(content_str)
-- we do this by counting the number of open braces

-- we need to do this through utf8 because lua strings are not unicode-aware
local codepoints = table.pack(utf8.codepoint(content_str, 1, #content_str))
local codepoints = {}
for _, c in utf8.codes(content_str) do
table.insert(codepoints, c)
end
local function find_codepoint(start_idx, ...)
if start_idx > #codepoints then
return nil
Expand Down
Loading