mirror of
https://github.com/Myzel394/easytables.nvim.git
synced 2025-06-18 14:55:26 +02:00
fix: Fix export widths
This commit is contained in:
parent
6dc7948a25
commit
b70c792110
@ -7,7 +7,7 @@ local M = {}
|
||||
---@param width number
|
||||
---@return string
|
||||
function M:export_cell(content, width)
|
||||
local padding = string.rep(" ", o.options.export.markdown.padding)
|
||||
local padding = string.rep(o.options.export.markdown.characters.filler, o.options.export.markdown.padding)
|
||||
|
||||
return
|
||||
o.options.export.markdown.characters.vertical
|
||||
@ -44,7 +44,7 @@ function M:create_header_line(widths)
|
||||
str =
|
||||
str
|
||||
.. o.options.export.markdown.characters.vertical
|
||||
.. string.rep(o.options.export.markdown.characters.horizontal, width)
|
||||
.. string.rep(o.options.export.markdown.characters.horizontal, width + o.options.export.markdown.padding * 2)
|
||||
end
|
||||
|
||||
return str .. o.options.export.markdown.characters.vertical
|
||||
|
@ -48,6 +48,8 @@ local options = {
|
||||
characters = {
|
||||
horizontal = "-",
|
||||
vertical = "|",
|
||||
-- Filler for padding
|
||||
filler = " "
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user