Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions themes/shortbread_v1/topics/streets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ local set_ref_attributes = function(a, t)
local cols = 0

for word in string.gmatch(t.ref, "([^;]+);?") do
word = word:gsub('^[%s]+', '', 1):gsub('[%s]+$', '', 1)
local trimmed = word:gsub('^[%s]+', '', 1):gsub('[%s]+$', '', 1)
rows = rows + 1
cols = math.max(cols, string.len(word))
table.insert(refs, word)
cols = math.max(cols, string.len(trimmed))
table.insert(refs, trimmed)
end

a.ref = table.concat(refs, '\n')
Expand Down
6 changes: 3 additions & 3 deletions themes/shortbread_v1_gen/topics/streets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ local set_ref_attributes = function(a, t)
local cols = 0

for word in string.gmatch(t.ref, "([^;]+);?") do
word = word:gsub('^[%s]+', '', 1):gsub('[%s]+$', '', 1)
local trimmed = word:gsub('^[%s]+', '', 1):gsub('[%s]+$', '', 1)
rows = rows + 1
cols = math.max(cols, string.len(word))
table.insert(refs, word)
cols = math.max(cols, string.len(trimmed))
table.insert(refs, trimmed)
end

a.ref = table.concat(refs, '\n')
Expand Down
Loading