mirror of
https://github.com/Myzel394/easytables.nvim.git
synced 2025-06-18 14:55:26 +02:00
fix: Removing padding when importing from table
This commit is contained in:
parent
eb24715275
commit
81cb10545b
@ -87,7 +87,7 @@ local function extract_table(
|
||||
table[#table + 1] = {}
|
||||
|
||||
for content in string.gmatch(line, "[^" .. o.options.export.markdown.characters.vertical .. "]+") do
|
||||
table[#table][#table[#table] + 1] = content
|
||||
table[#table][#table[#table] + 1] = string.gsub(content, '^%s*(.-)%s*$', '%1')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -58,10 +58,7 @@ local function setup(options)
|
||||
return
|
||||
end
|
||||
|
||||
print(vim.inspect(start_row), vim.inspect(end_row))
|
||||
|
||||
local raw_table = import.extract_table(buffer, start_row, end_row)
|
||||
print(vim.inspect(raw_table))
|
||||
|
||||
local markdown_table = table:import(raw_table)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user